mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-12 12:51:43 +00:00
Fix else working incorrectly from macros
Since the "skip ELSE blocks" variable is global, it used to get carried over from the macro's `if` to the outer's.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
m: macro
|
||||
if 0
|
||||
WARN "3"
|
||||
else
|
||||
WARN "5"
|
||||
endc
|
||||
endm
|
||||
|
||||
if 1
|
||||
m
|
||||
else
|
||||
WARN "12"
|
||||
endc
|
||||
@@ -0,0 +1,2 @@
|
||||
warning: if-macro.asm(10) -> if-macro.asm::m(5): [-Wuser]
|
||||
5
|
||||
Reference in New Issue
Block a user