flat assembler
Message board for the users of flat assembler.
Index
> Main > Prototypes?!? |
Author |
|
JohnFound 23 Jul 2004, 09:27
evil__donkey wrote: FASM doesn't warn if I mistakingly use IMHO, this is the right behaviour. Of course you still can use "win32ax.inc" if you can't live without parameter checking. Here is one simple example why parameter check is bad sometimes: Code: invoke ExtCreatePen,PS_COSMETIC,1,eax,0,NULL invoke SelectObject,[.DC], eax push eax ; old pen in the stack ; some line drawing invokes invoke SelectObject, [.DC] ; The old pen is already in the stack invoke DeleteObject,eax ; Delete created pen. In case of parameter check you have to pop eax and then to push it again. Regards. |
|||
23 Jul 2004, 09:27 |
|
Tomasz Grysztar 23 Jul 2004, 09:44
It's the "win32axp.inc" that does parameter checking.
|
|||
23 Jul 2004, 09:44 |
|
JohnFound 23 Jul 2004, 10:14
Privalov wrote: It's the "win32axp.inc" that does parameter checking. Sorry, my fault. |
|||
23 Jul 2004, 10:14 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.