![]() |
ER_throwVar | Function (ROM Call 0x153) |
error.h |
void ER_throwVar (short err_no); |
Throws an error.
ER_throwVar restores the state previously saved by ER_catch.
It then returns in such a way that ER_catch appears to have
returned with the value err_no.
See the TI-Basic manual for a meaning of the various error codes. ER_throwVar
should not be called with a value 0 as err_no. Think of ER_throwVar as a long
jump rather than a subroutine call. Execution does not return from the ER_throwVar call.
Note: If you want to use ER_throwVar to bail out to the TIOS from an arbitrary
place, you need to define ENABLE_ERROR_RETURN
.
See the section Returning Errors
for more information.