mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 03:52:08 +00:00
Improve the error messages for interpolating undefined or invalid symbols (#1423)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
SECTION "Test", ROM0
|
||||
SECTION "Test", ROM0[123]
|
||||
|
||||
def NAME equs "ITEM"
|
||||
def FMT equs "d"
|
||||
@@ -14,6 +14,15 @@ PRINTLN STRCAT("{NAME}_{d:INDEX}", " is ", {NAME}_{d:INDEX})
|
||||
PURGE {NAME}_{d:INDEX}
|
||||
ASSERT !DEF({NAME}_{d:INDEX})
|
||||
|
||||
; undefined
|
||||
PRINTLN "undef {undef}"
|
||||
|
||||
; referenced but undefined
|
||||
ld hl, label
|
||||
PRINTLN "label {label}"
|
||||
label::
|
||||
PRINTLN "label {label}"
|
||||
|
||||
; not string or number
|
||||
MACRO foo
|
||||
ENDM
|
||||
|
||||
Reference in New Issue
Block a user