| 1000 | COMMANDF(execute, "s", (char *s) { intret(execute(s)); }); |
| 1001 | |
| 1002 | void execdir(const char *dir) |
| 1003 | { |
| 1004 | if(dir[0]) |
| 1005 | { |
| 1006 | vector<char *> files; |
| 1007 | listfiles(dir, "cfg", files, stringsort); |
| 1008 | loopv(files) |
| 1009 | { |
| 1010 | defformatstring(d)("%s/%s.cfg",dir,files[i]); |
| 1011 | exec(d); |
| 1012 | delstring(files[i]); |
| 1013 | } |
| 1014 | } |
| 1015 | } |
| 1016 | COMMAND(execdir, "s"); |
| 1017 | |
| 1018 | // below the commands that implement a small imperative language. thanks to the semantics of |
nothing calls this directly
no test coverage detected