mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-02-01 07:20:15 +00:00
parser:: error handling now uses exceptions
This commit is contained in:
@@ -1577,7 +1577,12 @@ EX namespace patterns {
|
||||
}
|
||||
|
||||
ep.s = formula;
|
||||
return ep.parse();
|
||||
try {
|
||||
return ep.parse();
|
||||
}
|
||||
catch(hr_parse_exception& ex) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
EX hookset<int(cell*)> *hooks_generate_canvas;
|
||||
|
||||
Reference in New Issue
Block a user