mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2025-02-17 19:19:16 +01:00
util/log: Add log_error which logs errors but does not abort
This is required for tools/applications that want or have to fail gracefully but still need to highlight the severity in the log.
This commit is contained in:
parent
1d25abc10b
commit
de894ae5ce
@ -22,6 +22,7 @@
|
||||
#define log_misc(...) log_impl_misc(LOG_MODULE, __VA_ARGS__)
|
||||
#define log_info(...) log_impl_info(LOG_MODULE, __VA_ARGS__)
|
||||
#define log_warning(...) log_impl_warning(LOG_MODULE, __VA_ARGS__)
|
||||
#define log_error(...) log_impl_fatal(LOG_MODULE, __VA_ARGS__)
|
||||
|
||||
/* This doesn't really belong here, but it's what libavs does so w/e */
|
||||
|
||||
@ -37,6 +38,7 @@
|
||||
#define log_misc(...)
|
||||
#define log_info(...)
|
||||
#define log_warning(...)
|
||||
#define log_error(...)
|
||||
#define log_assert(x) \
|
||||
do { \
|
||||
if (!(x)) { \
|
||||
|
Loading…
x
Reference in New Issue
Block a user