mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 10:59:36 +00:00
Restore blue-painting of macro arg expansions to prevent recursion
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
error: macro-arg-recursion.asm(6) -> macro-arg-recursion.asm::m(2):
|
||||
Begun line continuation, but encountered character '2'
|
||||
Assembly aborted with 1 error!
|
||||
@@ -0,0 +1,2 @@
|
||||
10
|
||||
4
|
||||
Reference in New Issue
Block a user