mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 11:12:07 +00:00
Support 'MACRO mac' as well as 'mac: MACRO' for defining macros
The new syntax is used in documentation, but the old syntax is not yet deprecated.
This commit is contained in:
15
test/asm/macro-syntax.asm
Normal file
15
test/asm/macro-syntax.asm
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
old: MACRO ; comment
|
||||
println "out with the ", \1
|
||||
ENDM ; comment
|
||||
|
||||
MACRO new ; comment
|
||||
println "in with the ", \1
|
||||
ENDM ; comment
|
||||
|
||||
old 1
|
||||
new 2
|
||||
|
||||
bad1: MACRO bad2 ; comment
|
||||
println "which?"
|
||||
ENDM ; comment
|
||||
Reference in New Issue
Block a user