arg:: run_arguments function

This commit is contained in:
Zeno Rogue 2021-10-15 22:14:30 +02:00
parent 432499f903
commit a6022178b3
1 changed files with 6 additions and 0 deletions

View File

@ -126,6 +126,12 @@ EX namespace arg {
EX void cheat() { autocheat = true; cheater++; timerghost = false; }
EX void run_arguments(const vector<string> vec) {
dynamicval<int> p(pos, 0);
dynamicval<vector<string>> orig(argument, vec);
read(3);
}
EX void init(int argc, char **argv) { for(int i=0; i<argc; i++) argument.push_back(argv[i]); lshift(); }
EX void phaseerror(int x) {