shithub: rgbds

ref: 6902387991696a8ef067981823e790daa2a87774
dir: /test/asm/undefined-builtins.asm/

View raw version
; not inside a section
assert !DEF(@)
println @
println "{@}?"

; not inside a macro
assert !DEF(_NARG)
println _NARG
println "{_NARG}?"

SECTION "s", ROM0[$42]
assert DEF(@)
println @
println "{@}!"

MACRO m
	assert DEF(_NARG)
	println _NARG
	println "{_NARG}!"
ENDM
	m 1, 2, 3