1
0
Fork 0
forked from fun/fun

Added EXIT opcode to make it possible to return exit codes to the shell. (0.21.4)

This commit is contained in:
Johannes Findeisen 2025-10-04 13:02:29 +02:00
commit 9ac42c6ed1
8 changed files with 96 additions and 5 deletions

View file

@ -74,7 +74,7 @@ int main(int argc, char **argv) {
vm_print_output(&vm);
vm_clear_output(&vm);
bytecode_free(bc);
return 0;
return vm.exit_code;
}
#ifdef FUN_WITH_REPL