debug is program option

This commit is contained in:
2022-01-08 01:36:18 +01:00
parent e4b80c9cb7
commit 1374abd5cf
2 changed files with 18 additions and 6 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;
}