1
0
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:
Zeno Rogue
2019-12-23 21:44:51 +01:00
parent a83220c34e
commit 15000034fd
6 changed files with 63 additions and 29 deletions

View File

@@ -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;