mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 16:07:11 +00:00
argf now parses the given argument
This commit is contained in:
1 parent
dbdb1ba6dc
commit
7da2b7e9a1
4 files changed
+70
-63
No files matched your search
+1
-1
@@ -69,7 +69,7 @@ namespace arg {
|
||||
const char* argcs() { return args().c_str(); }
|
||||
int argi() { return atoi(argcs()); }
|
||||
unsigned arghex() { return strtoll(argcs(), NULL, 16); }
|
||||
ld argf() { return atof(argcs()); }
|
||||
ld argf() { return parseld(args()); }
|
||||
bool argis(const string& s) { return args() == s; }
|
||||
|
||||
void init(int argc, char **argv) { for(int i=0; i<argc; i++) argument.push_back(argv[i]); shift(); }
|
||||
|
||||
Reference in new issue
Block a user