-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
禁止输出时编译错误 #46
Comments
刚修正了,你再试试,多谢反馈哈~ |
应该是把elog.h中elog_a~elog_v的宏定义默认给出了有效定义(187-192行),移至78行#else /* ELOG_OUTPUT_ENABLE /的后面:如下: |
都行的,之前这个位置的定义写错了,所以修正下就行了 EasyLogger/easylogger/inc/elog.h Lines 71 to 78 in fa7f940
|
实际上是不行的,原文结构如下;
无论#ifndef ELOG_OUTPUT_ENABLE 是否生效,最后面的elog_a~elog_v的定义均生效,导致错误,这部分内容必须放到:
|
你可以更新下来试试嘛,我这边测试没问题 改动位于:6734e93 |
在elog.h中elog_a~elog_v的宏定义默认给出了有效定义(187-192行),导致未定义ELOG_OUTPUT_ENABLE时不能将宏有效置空。
The text was updated successfully, but these errors were encountered: