50 [[nodiscard]]
constexpr std::string_view
file_path() const noexcept {
59 [[nodiscard]]
constexpr std::uint32_t
line() const noexcept {
68 [[nodiscard]]
constexpr std::string_view
function() const noexcept {
86#define MSGPACK_RPC_CURRENT_FILE_PATH __FILE__
89#define MSGPACK_RPC_CURRENT_LINE __LINE__
91#ifdef MSGPACK_RPC_DOCUMENTATION
97#define MSGPACK_RPC_CURRENT_FUNCTION <implementation defined strings>
99#define MSGPACK_RPC_CURRENT_FUNCTION __func__
101#define MSGPACK_RPC_CURRENT_FUNCTION __FUNCSIG__
103#define MSGPACK_RPC_CURRENT_FUNCTION __func__
107#define MSGPACK_RPC_CURRENT_SOURCE_LOCATION() \
108 ::msgpack_rpc::logging::SourceLocationView( \
109 std::string_view(MSGPACK_RPC_CURRENT_FILE_PATH), \
110 static_cast<std::uint32_t>(MSGPACK_RPC_CURRENT_LINE), \
111 std::string_view(MSGPACK_RPC_CURRENT_FUNCTION))
std::string_view function_
Function name.
constexpr std::uint32_t line() const noexcept
Get the line number.
std::uint32_t line_
Line number.
constexpr std::string_view file_path() const noexcept
Get the file path.
constexpr SourceLocationView(std::string_view file_path, std::uint32_t line, std::string_view function) noexcept
Constructor.
constexpr std::string_view function() const noexcept
Get the function name.
std::string_view file_path_
File path.