Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some expansions in quit(), mostly TODO notes to bring it up to standard
- Loading branch information
1 parent
ee102b7
commit 50686c2
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
.end |