mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Add -B/--backtrace option to RGBASM and RGBLINK (#1787)
This commit is contained in:
@@ -838,16 +838,16 @@ uint32_t lexer_GetLineNo() {
|
||||
return lexerState->lineNo;
|
||||
}
|
||||
|
||||
void lexer_DumpStringExpansions() {
|
||||
void lexer_TraceStringExpansions() {
|
||||
if (!lexerState) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (Expansion &exp : lexerState->expansions) {
|
||||
// Only register EQUS expansions, not string args
|
||||
// Only print EQUS expansions, not string args
|
||||
if (exp.name) {
|
||||
style_Set(stderr, STYLE_CYAN, false);
|
||||
fputs("while expanding symbol \"", stderr);
|
||||
fputs(" while expanding symbol \"", stderr);
|
||||
style_Set(stderr, STYLE_CYAN, true);
|
||||
fputs(exp.name->c_str(), stderr);
|
||||
style_Set(stderr, STYLE_CYAN, false);
|
||||
|
||||
Reference in New Issue
Block a user