29#ifndef _GLIBCXX_SRCLOC
30#define _GLIBCXX_SRCLOC 1
32#define __glibcxx_want_source_location
35#if __cpp_lib_source_location
40_GLIBCXX_BEGIN_NAMESPACE_VERSION
43 struct source_location
46 using uint_least32_t = __UINT_LEAST32_TYPE__;
49 const char* _M_file_name;
50 const char* _M_function_name;
54 using __builtin_ret_type =
decltype(__builtin_source_location());
59 static consteval source_location
60 current(__builtin_ret_type __p = __builtin_source_location()) noexcept
62 source_location __ret;
63 __ret._M_impl =
static_cast <const __impl*
>(__p);
67 constexpr source_location() noexcept { }
70 constexpr uint_least32_t
72 {
return _M_impl ? _M_impl->_M_line : 0u; }
74 constexpr uint_least32_t
75 column() const noexcept
76 {
return _M_impl ? _M_impl->_M_column : 0u; }
79 file_name() const noexcept
80 {
return _M_impl ? _M_impl->_M_file_name :
""; }
83 function_name() const noexcept
84 {
return _M_impl ? _M_impl->_M_function_name :
""; }
87 const __impl* _M_impl =
nullptr;
90_GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.