flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > How check last macro param ? |
Author |
|
macomics 18 Sep 2022, 11:11
Code: macro checkIf2 arg { if arg = 2 invoke MessageBox, 0, 'commited', 0, 0 end if } macro checkArg check, [args] { common local test1 define test1 reverse match , test1 \{ check args \restore test1 \} } ;in one place code eqIrp EQU macroA,Data,0 eqIrp EQU macroA,Data2,2 ;last param its 2 ;another place code irpv v,eqIrp { v checkArg checkIf2, v } |
|||
18 Sep 2022, 11:11 |
|
Roman 18 Sep 2022, 11:35
Thanks. Work fine.
|
|||
18 Sep 2022, 11:35 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.