__trap
In this section:
Syntax
See Syntax for type attributes used on functions.
Description
Use the __trap keyword to define a trap function. Do not specify a vector, the function will automatically be assigned a vector by the system.
Example
__trap int my_trap_function(int a); ... if (my_trap_function(100)) ...