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 cb
with the library’s internal error logger. Anytime a function returns an error cb
will be invoked with a description of the error. It is up to the implementation of cb
to be thread safe.
The implementation generally invokes cb
at the moment the error occurs. Callers are encouraged to set breakpoints in their implementation of cb
and view the stack trace to discover the exact cause of the error.