KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches

API for managing global IRQ handler. More...

Functions

int irq_set_global_handler (irq_handler handler, void *data)
 Set a global exception handler.
 
irq_handler irq_get_global_handler (void)
 Get the global exception handler.
 

Detailed Description

API for managing global IRQ handler.

Function Documentation

◆ irq_get_global_handler()

irq_handler irq_get_global_handler ( void )

Get the global exception handler.

Returns
The global exception handler set with irq_set_global_handler(), or NULL if none is set.

◆ irq_set_global_handler()

int irq_set_global_handler ( irq_handler handler,
void * data )

Set a global exception handler.

This function sets a global catch-all filter for all exception types.

Note
The specific handler will still be called for the exception if one is set. If not, setting one of these will stop the unhandled exception error.
Parameters
hndA pointer to the procedure to handle the exception.
dataA pointer that will be passed along to the callback.
Return values
0On success (no error conditions defined).