mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-05 17:27:48 +00:00
Symbol names with more than two '.'s could be defined as constants
Dot-only names could also trip an assertion in `make develop` when used as labels
This commit is contained in:
@@ -16,3 +16,17 @@ ASSERT DEF(@) && DEF(.) && DEF(..) && DEF(Foo) && DEF(.bar)
|
||||
PRINTLN "PC: {#05X:@}"
|
||||
PRINTLN "global scope: \"{.}\" ({#05X:{.}})"
|
||||
PRINTLN "local scope: \"{..}\" ({#05X:{..}})"
|
||||
|
||||
SECTION "can't redefine", ROM0
|
||||
|
||||
#.
|
||||
#.:
|
||||
#.?
|
||||
DEF #. EQUS "global"
|
||||
jp #.
|
||||
|
||||
#..
|
||||
#..:
|
||||
#..?
|
||||
DEF #.. EQUS "local"
|
||||
jp #..
|
||||
|
||||
Reference in New Issue
Block a user