fix(log) be sure LV_LOG_... is not empty if logs are disabled
Fixes https://github.com/lvgl/lvgl/issues/2408#issuecomment-919645206
This commit is contained in:
@@ -117,11 +117,11 @@ void _lv_log_add(lv_log_level_t level, const char * file, int line, const char *
|
||||
|
||||
/*Do nothing if `LV_USE_LOG 0`*/
|
||||
#define _lv_log_add(level, file, line, ...)
|
||||
#define LV_LOG_TRACE(...)
|
||||
#define LV_LOG_INFO(...)
|
||||
#define LV_LOG_WARN(...)
|
||||
#define LV_LOG_ERROR(...)
|
||||
#define LV_LOG_USER(...)
|
||||
#define LV_LOG_TRACE(...) do {}while(0)
|
||||
#define LV_LOG_INFO(...) do {}while(0)
|
||||
#define LV_LOG_WARN(...) do {}while(0)
|
||||
#define LV_LOG_ERROR(...) do {}while(0)
|
||||
#define LV_LOG_USER(...) do {}while(0)
|
||||
#endif /*LV_USE_LOG*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user