This method should be called before the error messages and before a add_raw_abort
.
# Generate a long jump if there is a catch block.
#
# This method should be called before the error messages and before a `add_raw_abort`.
fun add_raw_throw
do
self.add("\{")
self.add("struct catch_stack_t *catchStack = getCatchStack();")
self.add("if(catchStack->cursor >= 0)\{")
self.add(" longjmp(catchStack->envs[catchStack->cursor], 1);")
self.add("\}")
self.add("\}")
end
src/compiler/abstract_compiler.nit:1924,2--1935,4