mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-26 18:44:31 +00:00
parser:: error handling now uses exceptions
This commit is contained in:
1 parent
a83220c34e
commit
15000034fd
6 files changed
+63
-29
No files matched your search
+6
-1
@@ -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