12#if __has_include(<experimental/source_location>)
13#include <experimental/source_location>
14#define yume_has_source_location -1
16#define yume_has_source_location 0
20#if yume_has_source_location == 1
21using std::source_location;
22#elif yume_has_source_location == -1
23using std::experimental::source_location;
26 constexpr inline auto file_name()
const {
return "??"; }
28 constexpr inline auto line()
const {
return -1; }
29 constexpr inline auto column()
const {
return -1; }
35 return std::string(location.file_name()) +
":" + std::to_string(location.line()) +
":" +
36 std::to_string(location.column()) +
" in " + location.function_name();
auto at(const source_location location=source_location::current()) -> std::string
constexpr auto file_name() const
constexpr auto column() const
constexpr auto line() const
static constexpr auto current()
constexpr auto function_name() const