New name. Minor corrections. Includes PONG.
This commit is contained in:
@@ -7,8 +7,10 @@ static bool raised = false;
|
||||
|
||||
|
||||
void error_raise(const char* msg) {
|
||||
raised = true;
|
||||
sprintf(errormsg, "ERROR: %s at %d:%d.", msg, tkn_get_line()+1, tkn_get_row()+1);
|
||||
if (!raised) {
|
||||
raised = true;
|
||||
sprintf(errormsg, "ERROR: %s at %d:%d.", msg, tkn_get_line() + 1, tkn_get_row() + 1);
|
||||
}
|
||||
}
|
||||
|
||||
bool error_raised() { return raised; }
|
||||
|
||||
Reference in New Issue
Block a user