flat assembler
Message board for the users of flat assembler.
![]() |
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. |
|||
![]() |
|
Tomasz Grysztar 23 Jul 2004, 09:44
It's the "win32axp.inc" that does parameter checking.
|
|||
![]() |
|
JohnFound 23 Jul 2004, 10:14
Privalov wrote: It's the "win32axp.inc" that does parameter checking. ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.