|
|
@@ -30,22 +30,11 @@ namespace log_internal
|
|
|
} // namespace log_internal
|
|
|
} // namespace crown
|
|
|
|
|
|
-#if CROWN_DEBUG
|
|
|
- #define CE_LOGIV(msg, va_list) crown::log_internal::logx(crown::LogSeverity::INFO, msg, va_list)
|
|
|
- #define CE_LOGDV(msg, va_list) crown::log_internal::logx(crown::LogSeverity::DEBUG, msg, va_list)
|
|
|
- #define CE_LOGEV(msg, va_list) crown::log_internal::logx(crown::LogSeverity::ERROR, msg, va_list)
|
|
|
- #define CE_LOGWV(msg, va_list) crown::log_internal::logx(crown::LogSeverity::WARN, msg, va_list)
|
|
|
- #define CE_LOGI(msg, ...) crown::log_internal::logx(crown::LogSeverity::INFO, msg, ##__VA_ARGS__)
|
|
|
- #define CE_LOGD(msg, ...) crown::log_internal::logx(crown::LogSeverity::DEBUG, msg, ##__VA_ARGS__)
|
|
|
- #define CE_LOGE(msg, ...) crown::log_internal::logx(crown::LogSeverity::ERROR, msg, ##__VA_ARGS__)
|
|
|
- #define CE_LOGW(msg, ...) crown::log_internal::logx(crown::LogSeverity::WARN, msg, ##__VA_ARGS__)
|
|
|
-#else
|
|
|
- #define CE_LOGIV(msg, va_list) ((void)0)
|
|
|
- #define CE_LOGDV(msg, va_list) ((void)0)
|
|
|
- #define CE_LOGEV(msg, va_list) ((void)0)
|
|
|
- #define CE_LOGWV(msg, va_list) ((void)0)
|
|
|
- #define CE_LOGI(msg, ...) ((void)0)
|
|
|
- #define CE_LOGD(msg, ...) ((void)0)
|
|
|
- #define CE_LOGE(msg, ...) ((void)0)
|
|
|
- #define CE_LOGW(msg, ...) ((void)0)
|
|
|
-#endif // CROWN_DEBUG
|
|
|
+#define CE_LOGIV(msg, va_list) crown::log_internal::logx(crown::LogSeverity::INFO, msg, va_list)
|
|
|
+#define CE_LOGDV(msg, va_list) crown::log_internal::logx(crown::LogSeverity::DEBUG, msg, va_list)
|
|
|
+#define CE_LOGEV(msg, va_list) crown::log_internal::logx(crown::LogSeverity::ERROR, msg, va_list)
|
|
|
+#define CE_LOGWV(msg, va_list) crown::log_internal::logx(crown::LogSeverity::WARN, msg, va_list)
|
|
|
+#define CE_LOGI(msg, ...) crown::log_internal::logx(crown::LogSeverity::INFO, msg, ##__VA_ARGS__)
|
|
|
+#define CE_LOGD(msg, ...) crown::log_internal::logx(crown::LogSeverity::DEBUG, msg, ##__VA_ARGS__)
|
|
|
+#define CE_LOGE(msg, ...) crown::log_internal::logx(crown::LogSeverity::ERROR, msg, ##__VA_ARGS__)
|
|
|
+#define CE_LOGW(msg, ...) crown::log_internal::logx(crown::LogSeverity::WARN, msg, ##__VA_ARGS__)
|