shithub: rgbds

ref: 3fbdba31bfa9af2660e2c7dc8d106d6110edd159
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