Top | ![]() |
![]() |
![]() |
![]() |
void | (*OilDebugPrintFunc) () |
void | oil_debug_set_print_function () |
int | oil_debug_get_level () |
void | oil_debug_set_level () |
#define | OIL_ERROR() |
#define | OIL_WARNING() |
#define | OIL_INFO() |
#define | OIL_DEBUG() |
#define | OIL_LOG() |
#define | OIL_DEBUG_PRINT() |
void (*OilDebugPrintFunc) (int level
,const char *file
,const char *func
,int line
,const char *format
,va_list varargs
);
Typedef describing functions that can be registered using
oil_debug_set_print_function()
so that it is called to
print debugging messages.
void
oil_debug_set_print_function (OilDebugPrintFunc func
);
Sets the function to call when outputting debugging information.
A value of NULL for func
will restore the default handler,
which prints debugging information to stderr.
#define OIL_ERROR(...) OIL_DEBUG_PRINT(OIL_DEBUG_ERROR, __VA_ARGS__)
Macro to call OIL_DEBUG_PRINT()
with a level of OIL_DEBUG_ERROR.
#define OIL_WARNING(...) OIL_DEBUG_PRINT(OIL_DEBUG_WARNING, __VA_ARGS__)
Macro to call OIL_DEBUG_PRINT()
with a level of OIL_DEBUG_WARNING.
#define OIL_INFO(...) OIL_DEBUG_PRINT(OIL_DEBUG_INFO, __VA_ARGS__)
Macro to call OIL_DEBUG_PRINT()
with a level of OIL_DEBUG_INFO.
#define OIL_DEBUG(...) OIL_DEBUG_PRINT(OIL_DEBUG_DEBUG, __VA_ARGS__)
Macro to call OIL_DEBUG_PRINT()
with a level of OIL_DEBUG_DEBUG.
#define OIL_LOG(...) OIL_DEBUG_PRINT(OIL_DEBUG_LOG, __VA_ARGS__)
Macro to call OIL_DEBUG_PRINT()
with a level of OIL_DEBUG_LOG.