parrotcode: Untitled | |
Contents | Language Implementations | TCL |
A convenience: we need these return codes in many different bytecode files.
Exception creation can be fairly verbose. These macros provide an API of sorts to the exceptions.
Preamble for any tcl-related exception handler.
Re-throw the current exception
(XXX) return the stacktrace for the current exception
Get the simple string message for the current exception.
Get the severity level of the current exception.
Get the tcl-level code for this exception.
(TCL_CATCH,
TCL_RETURN),
etc.
Note that TCL_OK is not one of the options here: that's implied by a normal parrot .return
Given a string, construct and throw a TCL_ERROR.
Throw an arbitrary TCL_ERROR, TCL_CONTINUE, etc, with a given message.
Generate a TCL_BREAK with no message.
Generate a TCL_BREAK with no message.
Generate a TCL_RETURN with the given return value.
the implementation of these never change: define them once and just include them.
Simplistic implementation of __clone
|