debug mode from command line arg

This commit is contained in:
vaclavt 2022-01-10 20:37:18 +01:00
parent 178be8366e
commit ffa53673f1
1 changed files with 5 additions and 5 deletions

View File

@ -147,11 +147,11 @@ void debug() {
int main(int argc, char *argv[]) {
// #ifdef NDEBUG
// repl();
// #else
debug();
// #endif
if (argc == 2 && strcpy(argv[1], "-debug")) {
debug();
} else {
repl();
}
return 0;
}