Added EXIT opcode to make it possible to return exit codes to the shell. (0.21.4)
This commit is contained in:
parent
e2e2ac6a66
commit
9ac42c6ed1
8 changed files with 96 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue