flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tommy 03 May 2004, 19:36
Code: if arg4 eq ; three args else ; four args end if ![]() |
|||
![]() |
|
aaro 03 May 2004, 19:37
Code: macro myfunction,[arg] { common local count count = 0 forward count = count + 1 push arg common if count = 3 call function1 else if count = 4 call function2 end if } Or you could check if parameter isn't empty(if ~arg1 eq ) and inc count. |
|||
![]() |
|
decard 03 May 2004, 19:45
Code: macro mac [arg] { argc = 0 forward if ~arg eq argc = argc+1 end if common ; now argc contains number of macro parameters (...) } |
|||
![]() |
|
madmatt 03 May 2004, 21:50
![]() ![]() |
|||
![]() |
|
decard 04 May 2004, 05:58
proably there's no reason for it, as it can be easily achieved using existing fearures
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.