Return to previous page Return to menu Go to next page

6.2 Error handling function

By registering an error handling function, you can specify that an error handling function be called if an error occurs during library function execution. In the initial state, no error handling function is registered.
When an error occurs, the error handling function is executed in the following call format.

 void * (func) (void * obj, Sint32 err); / * Error processing function * /
void * obj; / * Pointer to the registered object * /
Sint32 err_code; / * Error code that occurred * / 

(* func) (obj, err_code); / * Error processing function call * /

When returning from the error handling function, the library function returns control to the application side with the error code as the function value.

6.3 Multiple processing

Multiple processing due to interrupts is prohibited. When executing both main processing and interrupt processing, perform exclusive processing on the call side.

(1) During main processing

Wait until the called function does not return GFS_ERR_BUSY or postpone calling this library function until the next opportunity.

(2) Processing interrupt

Postponement of this library function call until the next opportunity.


Return to previous page Return to menu Go to next page