3#if defined(HAS_SOURCE_LOCATION) && __has_builtin(__builtin_source_location)
5#include <source_location>
7#elif defined(HAS_EXPERIMENTAL_SOURCE_LOCATION)
10#include <experimental/source_location>
20#if defined(HAS_SOURCE_LOCATION) && __has_builtin(__builtin_source_location)
21using SourceLocationType = std::source_location;
23#elif defined(HAS_EXPERIMENTAL_SOURCE_LOCATION)
24using SourceLocationType = std::experimental::source_location;
53 constexpr std::string_view
70using SourceLocationType = SourceLocation;
71#define SOURCE_LOCATION_OLD_API
77#if defined(SOURCE_LOCATION_OLD_API)
78#define CURRENT_SRC_LOCATION util::SourceLocationType(__FILE__, __LINE__)
80#define CURRENT_SRC_LOCATION util::SourceLocationType::current()
constexpr std::string_view file_name() const
Get the file name.
Definition SourceLocation.hpp:54
constexpr SourceLocation(char const *file, std::size_t line)
Construct a new Source Location object.
Definition SourceLocation.hpp:44
constexpr std::size_t line() const
Get the line number.
Definition SourceLocation.hpp:65
This namespace contains various utilities.
Definition AccountUtils.hpp:11