From 2f9cef0fa9194882f1b0217c5109aae5e8100fad Mon Sep 17 00:00:00 2001 From: chatlanin Date: Thu, 18 Jul 2024 12:10:51 +0300 Subject: [PATCH] fix def --- src/trs/utils/define.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/trs/utils/define.hpp b/src/trs/utils/define.hpp index 8d3744a..7a0eede 100644 --- a/src/trs/utils/define.hpp +++ b/src/trs/utils/define.hpp @@ -6,3 +6,7 @@ #define TRS_LOG(...) if (trs::var::status::DEBUG) hack::log(": ")(__VA_ARGS__) #define TRS_ERROR(...) if (trs::var::status::DEBUG) hack::error(": ")(__VA_ARGS__) +#define DEF_LINE() std::experimental::source_location::current().line() +#define DEF_LOCATION() std::experimental::source_location::current() + +