25namespace seastar::internal {
27class source_location {
33 constexpr source_location(
const char* file,
const char* func,
int line,
int col) noexcept
40 constexpr source_location() noexcept
50 source_location current(
const char* file = __builtin_FILE(),
const char* func = __builtin_FUNCTION(),
int line = __builtin_LINE(),
int col = 0) noexcept {
51 return source_location(file, func, line, col);
54 constexpr const char* file_name() const noexcept {
return _file; }
55 constexpr const char* function_name() const noexcept {
return _func; }
56 constexpr int line() const noexcept {
return _line; }
57 constexpr int column() const noexcept {
return _col; }