shithub: rgbds

ref: 8553b61a946527d12f2af7b75b1a7c66b8044ca1
dir: /test/asm/code-after-endm-endr-endc.asm/

View raw version
println "start"

; will not define 'mac'
MACRO mac
	println \1
ENDM println "<_<"
	mac "argument"

; will not repeat
REPT 3
	println "hey!"
ENDR println "<_<"

IF 0
	println "skipped"
	bad syntax!?
ELSE println "<_<"
	println "else clause"
ENDC println "<_<"

IF 1
	println "if clause"
ELSE println "<_<"
	println "not skipped"
ENDC println "<_<"

println "done"