mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
SPDLOG_NO_SOURCE_LOC implementation refinement
This commit is contained in:
parent
57e5814364
commit
1eaf98cc10
@ -295,7 +295,7 @@ inline void critical(const T &msg)
|
|||||||
#ifndef SPDLOG_NO_SOURCE_LOC
|
#ifndef SPDLOG_NO_SOURCE_LOC
|
||||||
#define SPDLOG_LOGGER_CALL(logger, level, ...) (logger)->log(spdlog::source_loc{__FILE__, __LINE__, SPDLOG_FUNCTION}, level, __VA_ARGS__)
|
#define SPDLOG_LOGGER_CALL(logger, level, ...) (logger)->log(spdlog::source_loc{__FILE__, __LINE__, SPDLOG_FUNCTION}, level, __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define SPDLOG_LOGGER_CALL(logger, level, ...) (logger)->log(spdlog::source_loc{nullptr, 0, nullptr}, level, __VA_ARGS__)
|
#define SPDLOG_LOGGER_CALL(logger, level, ...) (logger)->log(spdlog::source_loc{}, level, __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_TRACE
|
#if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_TRACE
|
||||||
|
Loading…
Reference in New Issue
Block a user