shift_argi and shift_args <- add this before!

This commit is contained in:
Zeno Rogue 2021-03-31 14:35:13 +02:00
parent 7cd37f1021
commit 2786221def
1 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,10 @@ EX namespace arg {
EX const string& args() { return argument[pos]; }
EX const char* argcs() { return args().c_str(); }
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 ld argf() {
try {