shithub: rgbds

ref: bbe28faab4f6dce29fe820450c425d255546cfbb
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