don't spam root objects

This commit is contained in:
dzaima 2021-05-20 23:16:21 +03:00
parent 2cee9260f7
commit 0b479fc9d0
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bqn
#!/usr/bin/env ./BQN
args•args
"Usage: ./getRuntime.bqn path/to/mlochbaum/BQN"!1args
path•args

View File

@ -169,6 +169,7 @@ int main(int argc, char* argv[]) {
}
}
if (startREPL) {
B replPath = m_str32(U"REPL"); gc_add(replPath);
while (CATCH) {
printf("Error: "); print(catchMessage); putchar('\n');
vm_pst(envCurr, envStart+envPrevHeight);
@ -178,7 +179,6 @@ int main(int argc, char* argv[]) {
#endif
gc_maybeGC();
}
B replPath = m_str32(U"REPL"); gc_add(replPath);
while (true) { // exit by evaluating an empty expression
char* ln = NULL;
size_t gl = 0;