osSetErrorHandler

osSetErrorHandler

Function

osSetErrorHandler

Sets the debug library error handling routine

Syntax

#incluide <ultra64.h>
typedef void (*OSErrorHandler)(s16 code, s16 numArgs, ...);
OSErrorHandler osSetErrorHandler(OSErrorHandler func);

Description

The osSetErrorHandler sets the debug library error handling routine to the func argument and returns the previous value. If func is NULL, no routine is called when a routine debug library encounters an error.

The default error handling routine installed at boot time will marshal the arguments and send them to gload where they are interpreted and printed.

This routine is only present in the debug library libultra_d.a, not in the non-debug library libultra.a.

See Also

gload