Function
uni_seterrfunc
Receive diagnostic events.
Since v1.0
void uni_seterrfunc(
void *user_data,
unierrfunc callback)
Parameters 🔗
| user_data | in | User pointer passed to unimemfunc. |
| callback | in | Error callback routine. |
Discussion 🔗
Associate the function callback with the library’s internal error logger. Anytime a function returns an error callback will be invoked with a description of the error. It is up to the implementation of callback to be thread safe.
The implementation generally invokes callback at the moment the error occurs. Callers are encouraged to set breakpoints in their implementation of callback and view the stack trace to discover the exact cause of the error.