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() + +