diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2025-03-10 07:38:47 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2025-03-10 07:40:49 (GMT) |
commit | 04d5af777d42d02d0ec580373f7a50be1bfb3dac (patch) | |
tree | 84c7e5ccb783da27d4f64b4a3de29fc852551363 /src/core | |
parent | beb5e3753cb9c110dc77d1ffa542f884df784ad0 (diff) |
Add libzip as dependency.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/logs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/logs.h b/src/core/logs.h index e8df8bd..3719c6b 100644 --- a/src/core/logs.h +++ b/src/core/logs.h @@ -162,6 +162,15 @@ void log_variadic_message(LogMessageType, const char *, ...); } \ while (0) +#define LOG_ERROR_ZIP(func, err) \ + do \ + { \ + const char *__msg; \ + __msg = zip_error_strerror(err); \ + log_variadic_message(LMT_EXT_ERROR, "[%s:%u] %s: %s", __FUNCTION__, __LINE__, func, __msg); \ + } \ + while (0) + #endif /* _CORE_LOGS_H */ |