40#define xsh_msg_dbg_high(...) { \
41 if (xsh_debug_level_get() >= XSH_DEBUG_LEVEL_HIGH)\
42 cpl_msg_debug(__func__, __VA_ARGS__) ; \
44#define xsh_msg_dbg_medium(...) { \
45 if (xsh_debug_level_get() >= XSH_DEBUG_LEVEL_MEDIUM)\
46 cpl_msg_debug(__func__, __VA_ARGS__) ; \
48#define xsh_msg_dbg_low(...) { \
49 if (xsh_debug_level_get() >= XSH_DEBUG_LEVEL_LOW)\
50 cpl_msg_debug(__func__, __VA_ARGS__) ; \
62#define xsh_msg_error(...) cpl_msg_error(__func__, __VA_ARGS__)
75#define xsh_msg_progress(i, iter, ...) cpl_msg_progress(__func__, (i), (iter),\
88#define xsh_msg_warning(...) xsh_msg_warning_macro(__func__, __VA_ARGS__)
99#define xsh_msg_debug(...) cpl_msg_debug(__func__, __VA_ARGS__)
107#define xsh_msg_indented(...) do { \
108 cpl_msg_indent_more(); \
109 xsh_msg(__VA_ARGS__); \
110 cpl_msg_indent_less(); \
121#define xsh_msg(...) cpl_msg_info("", __VA_ARGS__)
127__attribute__((format (printf, 2, 3)))
void xsh_msg_init(void)
Initialize messaging.
void xsh_msg_warning_macro(const char *fct, const char *format,...)
Print a warning message.
int xsh_msg_get_warnings(void)
Get number of warnings printed so far.