Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

some expansions in quit(), mostly TODO notes to bring it up to standard

  • Loading branch information...
commit 50686c25d2f5cf6413a0b2bcd18aba29074ea8d5 1 parent ee102b7
@Whiteknight authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/builtins/quit.pir
13 src/builtins/quit.pir
@@ -1,5 +1,18 @@
.sub 'quit'
.param int nargout
.param int nargin
+ .param string mode :optional
+ .param int has_mode :opt_flag
+ if has_mode goto check_mode
+ goto finish_and_die
+ check_mode:
+ if mode == "force" goto just_die_already
+ # TODO: in finish.m, if we call "quit('cancel')" we should stop the exit
+ # and continue execution from the point after this quit call
+ finish_and_die:
+ # TODO: Should look for and execute finish.m if it exists
+ just_die_already:
die 5, 0
Please sign in to comment.
Something went wrong with that request. Please try again.