mirror of
https://github.com/swaywm/sway.git
synced 2024-12-27 23:47:21 +01:00
Always log filename and line number
This commit is contained in:
parent
4c6c65e70c
commit
ad7f68585b
1 changed files with 0 additions and 5 deletions
|
@ -25,13 +25,8 @@ bool _sway_assert(bool condition, const char* format, ...) __attribute__((format
|
||||||
|
|
||||||
void _sway_log(const char *filename, int line, log_importance_t verbosity, const char* format, ...) __attribute__((format(printf,4,5)));
|
void _sway_log(const char *filename, int line, log_importance_t verbosity, const char* format, ...) __attribute__((format(printf,4,5)));
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
#define sway_log(VERBOSITY, FMT, ...) \
|
#define sway_log(VERBOSITY, FMT, ...) \
|
||||||
_sway_log(__FILE__, __LINE__, VERBOSITY, FMT, ##__VA_ARGS__)
|
_sway_log(__FILE__, __LINE__, VERBOSITY, FMT, ##__VA_ARGS__)
|
||||||
#else
|
|
||||||
#define sway_log(VERBOSITY, FMT, ...) \
|
|
||||||
_sway_log(NULL, 0, VERBOSITY, FMT, ##__VA_ARGS__)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void error_handler(int sig);
|
void error_handler(int sig);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue