mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix error-related issues (#773)
* Mark `error` as a `format` function, to properly scan its format * Fix the call to error() from parser.y: - Use '%s' to avoid passing an arbitrary format - Simplify yyerror overall * Fix size parameter of %.*s format being an int... bonkers standard. * Report the number of arguments required and provided on a STRFMT mismatch * Add an assert to check for a very unlikely bug
This commit is contained in:
@@ -7,5 +7,5 @@ ERROR: strfmt.asm(22):
|
||||
ERROR: strfmt.asm(24):
|
||||
STRFMT: Invalid format spec for argument 1
|
||||
ERROR: strfmt.asm(26):
|
||||
STRFMT: Not enough arguments for format spec
|
||||
STRFMT: Not enough arguments for format spec, got: 1, need: 3
|
||||
error: Assembly aborted (5 errors)!
|
||||
|
||||
Reference in New Issue
Block a user