27 #include <cpl_macros.h>
43 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
44 # define GI_GNUC_PRINTF(format_idx, arg_idx) \
45 __attribute__((format(__printf__, (format_idx), (arg_idx))))
47 # define GI_GNUC_PRINTF(format_idx, arg_idx)
51 #if !defined CX_LOG_DOMAIN
52 # define CX_LOG_DOMAIN "GiraffeLib"
56 void gi_error(
const cxchar *, ...) GI_GNUC_PRINTF(1, 2);
57 void gi_critical(const cxchar *, ...) GI_GNUC_PRINTF(1, 2);
58 void gi_warning(const cxchar *, ...) GI_GNUC_PRINTF(1, 2);
59 void gi_message(const cxchar *, ...) GI_GNUC_PRINTF(1, 2);
void gi_warning(const cxchar *format,...)
Log a warning.
void gi_error(const cxchar *format,...)
Log an error message.
void gi_message(const cxchar *format,...)
Log a normal message.
void gi_critical(const cxchar *format,...)
Log a "critical" warning.