From c0c1b49fa3bc4d874ca824c65c5dfff3a3fd7db1 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 16 Sep 2023 17:29:41 +0300 Subject: [PATCH] Fixed soruce location macro names --- include/spdlog/spdlog.h | 2 +- tests/test_source_location.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/spdlog.h b/include/spdlog/spdlog.h index 66c99092..5e65a95e 100644 --- a/include/spdlog/spdlog.h +++ b/include/spdlog/spdlog.h @@ -155,7 +155,7 @@ inline void log(level::level_enum lvl, S fmt, Args &&...args) default_logger_raw()->log(lvl, fmt, std::forward(args)...); } -#ifdef SPDLOG_USE_SOURCE_LOCATION +#ifdef SPDLOG_EMIT_SOURCE_LOCATION template inline void trace(loc_with_fmt fmt, Args &&...args) { diff --git a/tests/test_source_location.cpp b/tests/test_source_location.cpp index e4501f42..e22f2dcc 100644 --- a/tests/test_source_location.cpp +++ b/tests/test_source_location.cpp @@ -1,4 +1,4 @@ -#define SPDLOG_USE_SOURCE_LOCATION +#define SPDLOG_EMIT_SOURCE_LOCATION #include "includes.h" #include "test_sink.h"