Appendix A: System Routines — Error Handling
453
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
ER_throwFrame
(continued)
Example:
/* App error numbers begin with OO_FIRST_APP_STRING */
#define ER_COUNT_TOO_LONG (OO_FIRST_APP_STRING+1)
FRAME(appObj, OO_SYSTEM_FRAME, ...)
.
.
.
/* String numbers begin with OO_FIRST_STRING */
ATTR(OO_FIRST_STRING+ER_COUNT_TOO_LONG,"COUNT MUST BE <= 1024")
ENDFRAME
pFrame pAppObj = (pFrame)&appObj;
.
.
.
unsigned long count = estack_to_ulong(top_estack);
if (count > 1024)
ER_throwFrame(ER_COUNT_TOO_LONG, pAppObj); /* Throw app error number */