mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-05-16 11:12:07 +00:00
util:: parseint function
This commit is contained in:
@@ -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