Skip to content

Commit

Permalink
Mark die and warn as being invisible to the backtrace printer.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jul 19, 2010
1 parent 21d67d5 commit b62db16
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/builtins/control.pir
Expand Up @@ -20,6 +20,8 @@ src/builtins/control.pir - control flow related functions
.local string message
.local pmc p6ex
.local pmc ex

.annotate 'invizible_frame', 1

message = join '', list
if message > '' goto have_message
Expand All @@ -34,6 +36,8 @@ src/builtins/control.pir - control flow related functions
set_global '$!', p6ex
throw ex
.return ()

.annotate 'invizible_frame', 0
.end

=item exit
Expand Down Expand Up @@ -84,6 +88,8 @@ src/builtins/control.pir - control flow related functions
.local pmc p6ex
.local pmc ex

.annotate 'invizible_frame', 1

message = join '', list
if message > '' goto have_message
message = "Warning"
Expand All @@ -97,6 +103,8 @@ src/builtins/control.pir - control flow related functions
set_global '$!', p6ex
throw ex
.return ()

.annotate 'invizible_frame', 0
.end

=item fail
Expand Down

0 comments on commit b62db16

Please sign in to comment.