22#if defined(HAS_SOURCE_LOCATION) && __has_builtin(__builtin_source_location)
24#include <source_location>
26#elif defined(HAS_EXPERIMENTAL_SOURCE_LOCATION)
29#include <experimental/source_location>
39#if defined(HAS_SOURCE_LOCATION) && __has_builtin(__builtin_source_location)
40using SourceLocationType = std::source_location;
42#elif defined(HAS_EXPERIMENTAL_SOURCE_LOCATION)
43using SourceLocationType = std::experimental::source_location;
72 constexpr std::string_view
89using SourceLocationType = SourceLocation;
90#define SOURCE_LOCATION_OLD_API
96#if defined(SOURCE_LOCATION_OLD_API)
97#define CURRENT_SRC_LOCATION util::SourceLocationType(__FILE__, __LINE__)
99#define CURRENT_SRC_LOCATION util::SourceLocationType::current()
A class representing the source location of the current code.
Definition SourceLocation.hpp:52
constexpr std::string_view file_name() const
Get the file name.
Definition SourceLocation.hpp:73
constexpr SourceLocation(char const *file, std::size_t line)
Construct a new Source Location object.
Definition SourceLocation.hpp:63
constexpr std::size_t line() const
Get the line number.
Definition SourceLocation.hpp:84
This namespace contains various utilities.
Definition AccountUtils.hpp:30