mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Store IF depth relative to each fstack context
This disallows starting/ending an IF inside an INCLUDEd file or a macro expansion
This commit is contained in:
15
test/asm/unterminated-if.asm
Normal file
15
test/asm/unterminated-if.asm
Normal file
@@ -0,0 +1,15 @@
|
||||
if 1
|
||||
if 0
|
||||
println "A"
|
||||
elif 1
|
||||
println "B"
|
||||
else
|
||||
println "C"
|
||||
endc
|
||||
else
|
||||
println "D"
|
||||
endc
|
||||
|
||||
INCLUDE "unterminated-if-include.inc"
|
||||
|
||||
println "done"
|
||||
Reference in New Issue
Block a user