mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-09 13:41:45 +00:00
Fix line counter maybe?
This commit is contained in:
parent
3ab95dfd64
commit
9b47a0da33
2 changed files with 2 additions and 2 deletions
|
@ -128,7 +128,7 @@ Variable_t* opToVar(Operator_t* op, Callback_SetVar_t *setCallback) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
SCRIPT_FATAL_ERR("[FATAL] Unexpected set!");
|
SCRIPT_FATAL_ERR("Unexpected set!");
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,6 @@ void printScriptError(u8 errLevel, char* message, ...) {
|
||||||
gfx_printf("\n\n[%s] ", (errLevel == SCRIPT_FATAL) ? "FATAL" : (errLevel == SCRIPT_PARSER_FATAL) ? "PARSE_FATAL" : "WARN");
|
gfx_printf("\n\n[%s] ", (errLevel == SCRIPT_FATAL) ? "FATAL" : (errLevel == SCRIPT_PARSER_FATAL) ? "PARSE_FATAL" : "WARN");
|
||||||
gfx_vprintf(message, args);
|
gfx_vprintf(message, args);
|
||||||
if (errLevel < SCRIPT_WARN)
|
if (errLevel < SCRIPT_WARN)
|
||||||
gfx_printf("\nError occured on or near line %d\n", scriptCurrentLine);
|
gfx_printf("\nError occured on or near line %d\n", (u32)scriptCurrentLine);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
Loading…
Reference in a new issue