Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro # arguments #111

Open
andrew-davie opened this issue Feb 17, 2021 · 0 comments
Open

Macro # arguments #111

andrew-davie opened this issue Feb 17, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@andrew-davie
Copy link
Member

andrew-davie commented Feb 17, 2021

Would be useful to me for macros to have access to the # of arguments passed.
This would allow conditional parameters, effectively.

 MAC WHICH
  jsr {1}
  IF {#} > 1
    jsr {2}
  ENDIF
ENDM
; usage
 WHICH one
 WHICH one,two
@thrust26 thrust26 added the enhancement New feature or request label Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants