22#if KCENON_HAS_SOURCE_LOCATION
23 #include <source_location>
28#if KCENON_HAS_SOURCE_LOCATION
37 const char* file = __builtin_FILE(),
38 const char* function = __builtin_FUNCTION(),
39 int line = __builtin_LINE()
45 constexpr int line() const noexcept {
return line_; }
50 const char* file = __builtin_FILE(),
51 const char* function = __builtin_FUNCTION(),
52 int line = __builtin_LINE()
Unified feature flags header for common_system.
kcenon::common::source_location source_location
C++17-compatible source_location implementation using compiler builtins.
constexpr source_location(const char *file=__builtin_FILE(), const char *function=__builtin_FUNCTION(), int line=__builtin_LINE()) noexcept
static constexpr source_location current(const char *file=__builtin_FILE(), const char *function=__builtin_FUNCTION(), int line=__builtin_LINE()) noexcept
constexpr int line() const noexcept
constexpr int column() const noexcept
constexpr const char * file_name() const noexcept
constexpr const char * function_name() const noexcept