Skip to content

Commit

Permalink
【修正】ELOG_OUTPUT_ENABLE 未定义时存在的编译错误。感谢网友 @mojinpan 的反馈。
Browse files Browse the repository at this point in the history
Signed-off-by: armink <armink.ztl@gmail.com>
  • Loading branch information
armink committed Mar 30, 2019
1 parent fa7f940 commit 6734e93
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions easylogger/inc/elog.h
@@ -1,7 +1,7 @@
/*
* 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
* a copy of this software and associated documentation files (the
Expand Down Expand Up @@ -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
Expand All @@ -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, ...) \
Expand Down

0 comments on commit 6734e93

Please sign in to comment.