aboutsummaryrefslogtreecommitdiffstats
path: root/include/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/log.h b/include/log.h
index 32981b62..a1e33fa2 100644
--- a/include/log.h
+++ b/include/log.h
@@ -17,7 +17,10 @@ void reset_log_level(void);
17bool toggle_debug_logging(void); 17bool toggle_debug_logging(void);
18void sway_log_colors(int mode); 18void sway_log_colors(int mode);
19void sway_log_errno(log_importance_t verbosity, char* format, ...) __attribute__((format(printf,2,3))); 19void sway_log_errno(log_importance_t verbosity, char* format, ...) __attribute__((format(printf,2,3)));
20void sway_abort(const char* format, ...) __attribute__((format(printf,1,2))); 20
21void _sway_abort(const char *filename, int line, const char* format, ...) __attribute__((format(printf,3,4)));
22#define sway_abort(FMT, ...) \
23 _sway_abort(__FILE__, __LINE__, FMT, ##__VA_ARGS__)
21 24
22bool _sway_assert(bool condition, const char *filename, int line, const char* format, ...) __attribute__((format(printf,4,5))); 25bool _sway_assert(bool condition, const char *filename, int line, const char* format, ...) __attribute__((format(printf,4,5)));
23#define sway_assert(COND, FMT, ...) \ 26#define sway_assert(COND, FMT, ...) \