mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-26 02:34:26 +00:00
util:: parseint function
This commit is contained in:
1 parent
41628cbd1a
commit
8c5c8f2c19
1 file changed
+7
-1
@@ -443,7 +443,13 @@ cld exp_parser::parse(int prio) {
|
||||
EX ld parseld(const string& s) {
|
||||
exp_parser ep;
|
||||
ep.s = s;
|
||||
return real(ep.parse());
|
||||
return ep.rparse();
|
||||
}
|
||||
|
||||
EX int parseint(const string& s) {
|
||||
exp_parser ep;
|
||||
ep.s = s;
|
||||
return ep.iparse();
|
||||
}
|
||||
|
||||
EX string available_functions() {
|
||||
|
||||
Reference in new issue
Block a user