Struct source_loc

Synopsis

#include <include/spdlog/common.h>

struct source_loc

Description

No description yet.

Methods

source_loc overload
empty

Source

Lines 241-257 in include/spdlog/common.h.

struct source_loc
{
    SPDLOG_CONSTEXPR source_loc() = default;
    SPDLOG_CONSTEXPR source_loc(const char *filename_in, int line_in, const char *funcname_in)
        : filename{filename_in}
        , line{line_in}
        , funcname{funcname_in}
    {}

    SPDLOG_CONSTEXPR bool empty() const SPDLOG_NOEXCEPT
    {
        return line == 0;
    }
    const char *filename{nullptr};
    int line{0};
    const char *funcname{nullptr};
};





Add Discussion

Log in to comment