1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-17 11:38:05 +00:00

arg::nomore(); fixes in collatz3

This commit is contained in:
Zeno Rogue
2019-04-22 22:59:37 +02:00
parent 98381f5526
commit 49877fbfc9
3 changed files with 5 additions and 2 deletions

View File

@@ -65,6 +65,8 @@ namespace arg {
lshift(); if(pos > isize(argument)) { printf("Missing parameter\n"); exit(1); }
}
bool nomore() { return pos >= isize(argument); }
const string& args() { return argument[pos]; }
const char* argcs() { return args().c_str(); }
int argi() { return atoi(argcs()); }