【修正】ELOG_OUTPUT_ENABLE 未定义时存在的编译错误。感谢网友 @mojinpan 的反馈。

Signed-off-by: armink <armink.ztl@gmail.com>
pull/49/head
armink 7 years ago
parent fa7f940e0d
commit 6734e930fd

@ -1,7 +1,7 @@
/* /*
* This file is part of the EasyLogger Library. * This file is part of the EasyLogger Library.
* *
* Copyright (c) 2015-2018, Armink, <armink.ztl@gmail.com> * Copyright (c) 2015-2019, Armink, <armink.ztl@gmail.com>
* *
* Permission is hereby granted, free of charge, to any person obtaining * Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the * a copy of this software and associated documentation files (the
@ -50,7 +50,7 @@ extern "C" {
#define ELOG_LVL_TOTAL_NUM 6 #define ELOG_LVL_TOTAL_NUM 6
/* EasyLogger software version number */ /* EasyLogger software version number */
#define ELOG_SW_VERSION "2.0.3" #define ELOG_SW_VERSION "2.1.0"
/* EasyLogger assert for developer. */ /* EasyLogger assert for developer. */
#ifdef ELOG_ASSERT_ENABLE #ifdef ELOG_ASSERT_ENABLE
@ -69,12 +69,12 @@ extern "C" {
#endif #endif
#ifndef ELOG_OUTPUT_ENABLE #ifndef ELOG_OUTPUT_ENABLE
#define elog_a(tag, ...) #define elog_assert(tag, ...)
#define elog_e(tag, ...) #define elog_error(tag, ...)
#define elog_w(tag, ...) #define elog_warn(tag, ...)
#define elog_i(tag, ...) #define elog_info(tag, ...)
#define elog_d(tag, ...) #define elog_debug(tag, ...)
#define elog_v(tag, ...) #define elog_verbose(tag, ...)
#else /* ELOG_OUTPUT_ENABLE */ #else /* ELOG_OUTPUT_ENABLE */
#if ELOG_OUTPUT_LVL >= ELOG_LVL_ASSERT #if ELOG_OUTPUT_LVL >= ELOG_LVL_ASSERT
#define elog_assert(tag, ...) \ #define elog_assert(tag, ...) \

Loading…
Cancel
Save