-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【修正】ELOG_OUTPUT_ENABLE 未定义时存在的编译错误。感谢网友 @mojinpan 的反馈。
Signed-off-by: armink <[email protected]>
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is part of the EasyLogger Library. | ||
* | ||
* Copyright (c) 2015-2018, Armink, <[email protected]> | ||
* Copyright (c) 2015-2019, Armink, <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining | ||
* a copy of this software and associated documentation files (the | ||
|
@@ -50,7 +50,7 @@ extern "C" { | |
#define ELOG_LVL_TOTAL_NUM 6 | ||
|
||
/* EasyLogger software version number */ | ||
#define ELOG_SW_VERSION "2.0.3" | ||
#define ELOG_SW_VERSION "2.1.0" | ||
|
||
/* EasyLogger assert for developer. */ | ||
#ifdef ELOG_ASSERT_ENABLE | ||
|
@@ -69,12 +69,12 @@ extern "C" { | |
#endif | ||
|
||
#ifndef ELOG_OUTPUT_ENABLE | ||
#define elog_a(tag, ...) | ||
#define elog_e(tag, ...) | ||
#define elog_w(tag, ...) | ||
#define elog_i(tag, ...) | ||
#define elog_d(tag, ...) | ||
#define elog_v(tag, ...) | ||
#define elog_assert(tag, ...) | ||
#define elog_error(tag, ...) | ||
#define elog_warn(tag, ...) | ||
#define elog_info(tag, ...) | ||
#define elog_debug(tag, ...) | ||
#define elog_verbose(tag, ...) | ||
#else /* ELOG_OUTPUT_ENABLE */ | ||
#if ELOG_OUTPUT_LVL >= ELOG_LVL_ASSERT | ||
#define elog_assert(tag, ...) \ | ||
|