mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-25 12:32:07 +00:00
Restore blue-painting of macro arg expansions to prevent recursion
This commit is contained in:
6
test/asm/macro-arg-recursion.asm
Normal file
6
test/asm/macro-arg-recursion.asm
Normal file
@@ -0,0 +1,6 @@
|
||||
MACRO m
|
||||
def x = (\1) * 2
|
||||
println "{d:x}"
|
||||
ENDM
|
||||
m 5 ; prints 10
|
||||
m \\2, 6 ; should not prints 12
|
||||
Reference in New Issue
Block a user