Skip to content

Commit

Permalink
[builtins/control.pir] copy in the exit function from master
Browse files Browse the repository at this point in the history
  • Loading branch information
mberends committed Feb 7, 2010
1 parent c3371de commit 5cc8d5b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/builtins/control.pir
Expand Up @@ -36,6 +36,20 @@ src/builtins/control.pir - control flow related functions
.return ()
.end

=item exit

=cut

.sub '&exit'
.param int status :optional
.param int has_status :opt_flag

if has_status goto x
status = 0
x:
exit status
.end

.sub '&warn'
.param pmc list :slurpy
.local string message
Expand Down

0 comments on commit 5cc8d5b

Please sign in to comment.