Type

unierrfunc

Diagnostic function.

Since v1.0
typedef void(*unierrfunc)(void *user_data, const char *message)

Discussion 🔗

Defines the function signature for a custom error callback function. The resulting message, given by message, is UTF-8 encoded and null-terminated. It is a message intended for programmers, written in US English, for debugging purposes. It must never be displayed to an end user.

A minimal implementation of this function might look like the following. Note this example does not utilize the user_data parameters.

void custom_log(void *user_data, const char *message) {
    puts(msg);
}