mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 03:19:02 +08:00
Support for source file/line logging
This commit is contained in:
@@ -185,6 +185,15 @@ using filename_t = std::wstring;
|
||||
using filename_t = std::string;
|
||||
#endif
|
||||
|
||||
|
||||
struct source_loc
|
||||
{
|
||||
SPDLOG_CONSTEXPR source_loc(): filename(""), line(0) {}
|
||||
SPDLOG_CONSTEXPR source_loc(const char *filename, int line) : filename(filename), line(line) {}
|
||||
const char* const filename ;
|
||||
const uint32_t line;
|
||||
};
|
||||
|
||||
namespace details {
|
||||
// make_unique support for pre c++14
|
||||
|
||||
|
Reference in New Issue
Block a user