Skip to content

Commit

Permalink
fix(log) be sure LV_LOG_... is not empty if logs are disabled
Browse files Browse the repository at this point in the history
kisvegabor committed Sep 20, 2021
1 parent 258a9ae commit 47734c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/misc/lv_log.h
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 47734c4

Please sign in to comment.