mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
shift_argi and shift_args <- add this before!
This commit is contained in:
parent
7cd37f1021
commit
2786221def
@ -87,6 +87,10 @@ EX namespace arg {
|
|||||||
EX const string& args() { return argument[pos]; }
|
EX const string& args() { return argument[pos]; }
|
||||||
EX const char* argcs() { return args().c_str(); }
|
EX const char* argcs() { return args().c_str(); }
|
||||||
EX int argi() { return atoi(argcs()); }
|
EX int argi() { return atoi(argcs()); }
|
||||||
|
|
||||||
|
EX int shift_argi() { shift(); return argi(); }
|
||||||
|
EX const string& shift_args() { shift(); return args(); }
|
||||||
|
|
||||||
EX unsigned arghex() { return strtoll(argcs(), NULL, 16); }
|
EX unsigned arghex() { return strtoll(argcs(), NULL, 16); }
|
||||||
EX ld argf() {
|
EX ld argf() {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user