Error management#

typedef void (*mlx_error_handler_func)(const char *msg, void *data)#
void mlx_set_error_handler(mlx_error_handler_func handler, void *data, void (*dtor)(void*))#

Set the error handler.

void _mlx_error(const char *file, const int line, const char *fmt, ...)#

Throw an error.

mlx_error(...)#

Throw an error.

Macro which passes file name and line number to _mlx_error().