mirror of
https://github.com/janet-lang/janet
synced 2025-01-01 03:10:27 +00:00
Add janet_loop() call to static binaries.
This commit is contained in:
parent
8ae6ae65a1
commit
135aff9e17
@ -512,11 +512,14 @@ int main(int argc, const char **argv) {
|
||||
fiber->env = temptab;
|
||||
Janet out;
|
||||
JanetSignal result = janet_continue(fiber, janet_wrap_nil(), &out);
|
||||
if (result) {
|
||||
if (result != JANET_SIGNAL_OK && result < JANET_SIGNAL_USER0) {
|
||||
janet_stacktrace(fiber, out);
|
||||
janet_deinit();
|
||||
return result;
|
||||
}
|
||||
#ifdef JANET_NET
|
||||
janet_loop();
|
||||
#endif
|
||||
janet_deinit();
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user