Skip to content

Instantly share code, notes, and snippets.

@toshok
Created May 28, 2015 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toshok/9075ae87c90edf85adbf to your computer and use it in GitHub Desktop.
Save toshok/9075ae87c90edf85adbf to your computer and use it in GitHub Desktop.
Value ASTInterpreter::visit_invoke(AST_Invoke* node) {
Value v;
try {
v = visit_stmt(node->stmt);
next_block = node->normal_dest;
} catch (ExcInfo e) {
if (e.incremental_traceback) {
auto source = getCF()->clfunc->source.get();
static_cast<BoxedTraceback*>(e.traceback)->addLine(new LineInfo(node->lineno, node->col_offset, source->fn, source->getName()));
}
next_block = node->exc_dest;
last_exception = e;
}
return v;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment