mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-25 12:32:07 +00:00
Revamp macro arg system
This should significantly improve performance: on pokecrystal builds, perf reported as much CPU time spent on `yyparse` as on `sym_UseNewMacroArgs` Measurements show ~6 seconds of improvement on that codebase. This also fixes #321, as a bonus, due to saner management!
This commit is contained in:
15
test/asm/unique-id.asm
Normal file
15
test/asm/unique-id.asm
Normal file
@@ -0,0 +1,15 @@
|
||||
print EQUS "WARN \"\\@\""
|
||||
|
||||
m: macro
|
||||
print
|
||||
REPT 2
|
||||
print
|
||||
ENDR
|
||||
print
|
||||
endm
|
||||
; TODO: Ideally we'd test now as well, but it'd cause a fatal error
|
||||
;print
|
||||
m
|
||||
;print
|
||||
m
|
||||
print
|
||||
Reference in New Issue
Block a user