SYS_error
2-456
C Interface
Syntax
SYS_error(s, errno, [arg], ...);
Parameters
String
s;
/* error string */
Int
errno;
/* error code */
Arg
arg;
/* optional argument */
Return Value
Void
Description
SYS_error is used to flag DSP/BIOS error conditions. Application
programs should call SYS_error to handle program errors. Internal
functions also call SYS_error.
SYS_error calls a function to handle errors. The default error function for
the SYS manager is _UTL_doError, which logs an error message and
returns. The default function can be replaced with your own error function
by setting the SYS.ERRORFXN configuration property.
The default error function or an alternate configured error function is
called as follows, where vargs is of type va_list (a void pointer which can
be interpreted as an argument list) and represents the sequence of arg
parameters originally passed to SYS_error.
(*(Error_function))(s, errno, vargs)
Constraints and
Calling Context
❏
The only valid error numbers are the error constants defined in sys.h
(SYS_E*) or numbers greater than or equal to SYS_EUSER.
Passing any other error values to SYS_error can cause DSP/BIOS to
crash.
SYS_error
Flag error condition