mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Make failed macro arg expansions non-fatal
Expanding empty strings is valid but pointless;
macro args already skipped doing so, now other
`beginExpansion` calls do too.
This also fixes failed interpolations (which were
already non-fatal) to continue reading characters,
not evaluate to their initial '{' character.
This commit is contained in:
@@ -5,5 +5,8 @@ ERROR: interpolation-overflow.asm(4):
|
||||
warning: interpolation-overflow.asm(4): [-Wlarge-constant]
|
||||
Precision of fixed-point constant is too large
|
||||
while expanding symbol "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
||||
FATAL: interpolation-overflow.asm(4):
|
||||
ERROR: interpolation-overflow.asm(4):
|
||||
Macro argument '\1' not defined
|
||||
ERROR: interpolation-overflow.asm(4):
|
||||
syntax error, unexpected number
|
||||
error: Assembly aborted (4 errors)!
|
||||
|
||||
Reference in New Issue
Block a user