Merge pull request #604 from sam-lunt/improve-macros

Ensure marcos always expand to expressions
This commit is contained in:
Gabi Melman 2018-01-03 18:05:25 +02:00 committed by GitHub
commit 32177aa77a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,16 +178,15 @@ void drop_all();
# define SPDLOG_TRACE(logger, ...) logger->trace("[ " __FILE__ ":" SPDLOG_STR_HELPER(__LINE__) " ] " __VA_ARGS__)
# endif
#else
#define SPDLOG_TRACE(logger, ...)
# define SPDLOG_TRACE(logger, ...) (void)0
#endif
#ifdef SPDLOG_DEBUG_ON
# define SPDLOG_DEBUG(logger, ...) logger->debug(__VA_ARGS__)
#else
#define SPDLOG_DEBUG(logger, ...)
# define SPDLOG_DEBUG(logger, ...) (void)0
#endif
}
#include "details/spdlog_impl.h"