mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Test an indented macro label
This commit is contained in:
@@ -5,26 +5,7 @@ SECTION "Label testing", WRAMX
|
|||||||
.loc
|
.loc
|
||||||
Lab.loc2
|
Lab.loc2
|
||||||
|
|
||||||
; X = 0
|
mac: MACRO
|
||||||
; ; Should not believe X is a label!
|
println "\1"
|
||||||
; IF X == 1
|
ENDM
|
||||||
; FAIL "Wrong!"
|
mac :
|
||||||
; ENDC
|
|
||||||
; X \
|
|
||||||
; = 1
|
|
||||||
; IF X != 1
|
|
||||||
; FAIL "Wrong!"
|
|
||||||
; ENDC
|
|
||||||
;
|
|
||||||
; Y equ 42
|
|
||||||
; PRINTT "Y={Y}\n"
|
|
||||||
; PURGE Y
|
|
||||||
;
|
|
||||||
; Y equs "mac"
|
|
||||||
; mac: MACRO
|
|
||||||
; PRINTT "\1\n"
|
|
||||||
; ENDM
|
|
||||||
; ; Should invoke macro Y, and not match "equ" due to the "a" behind it
|
|
||||||
; Y equates 69
|
|
||||||
; Y equsquisite (isn't that English?)
|
|
||||||
; Y eq
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
:
|
||||||
|
|||||||
Reference in New Issue
Block a user