mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2025-01-13 20:01:35 +01:00
1ee86c6290
This allows turning on and off debug logs, as well as defining a logging callback.
15 lines
336 B
C
15 lines
336 B
C
#ifndef LOG_H
|
|
#define LOG_H
|
|
|
|
#include <libliftoff.h>
|
|
|
|
#ifdef __GNUC__
|
|
#define _LIFTOFF_ATTRIB_PRINTF(start, end) __attribute__((format(printf, start, end)))
|
|
#else
|
|
#define _LIFTOFF_ATTRIB_PRINTF(start, end)
|
|
#endif
|
|
|
|
void liftoff_log(enum liftoff_log_importance verbosity,
|
|
const char *format, ...) _LIFTOFF_ATTRIB_PRINTF(2, 3);
|
|
|
|
#endif
|