Add #macro and #define support #10

deNULL opened this Issue Apr 8, 2012 · 2 comments

1 participant


After the moment there will be some standard way for defining macros and constants, it should be implemented in the assembler.

Currently I've seen two possible syntaxes for macro:

#macro name(param1, param2, param3) {
 ... ; some code

(from, presumably Notch's code)


#macro name(param1, param2, param3)
  ... ; some code

(from reddit:

@deNULL deNULL was assigned Apr 8, 2012

#macro implemented (Notch's syntax)


#define implemented as well; syntax:

#define PI 3             ; instead of 3 there can be any literal expression
@deNULL deNULL closed this Apr 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment