gbdev/rgbds

Macro identifiers can be treated as numbers

Closed this issue · 0 comments

When a macro identifier begins a line, it's parsed as a macro invocation. But in other contexts, they work like a numeric symbol with value 0. No error or warning.

MACRO mac
ENDM

db mac ; should fail but doesn't

def n equ mac ; just complains "'mac' is not constant at assembly time", should be a type error

; etc