Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
6dd928dc
Commit
6dd928dc
authored
Dec 19, 2017
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Undo fix #529 (causes a warning under gcc and clang when no args passed)
parent
de595fe2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
spdlog.h
include/spdlog/spdlog.h
+5
-3
No files found.
include/spdlog/spdlog.h
View file @
6dd928dc
...
@@ -165,13 +165,15 @@ void drop_all();
...
@@ -165,13 +165,15 @@ void drop_all();
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#ifdef SPDLOG_TRACE_ON
#ifdef SPDLOG_TRACE_ON
#define SPDLOG_STR_H(x) #x
#define SPDLOG_STR_HELPER(x) SPDLOG_STR_H(x)
#ifdef _MSC_VER
#ifdef _MSC_VER
#define SPDLOG_TRACE(logger,
s, ...) logger->trace(fmt::format("[ {}({}) ] {}", __FILE__, __LINE__, (s)).c_str(), ##__VA_ARGS__);
#define SPDLOG_TRACE(logger,
...) logger->trace("[ " __FILE__ "(" SPDLOG_STR_HELPER(__LINE__) ") ] " __VA_ARGS__)
#else
#else
#define SPDLOG_TRACE(logger,
s, ...) logger->trace(fmt::format("[ {}:{} ] {}", __FILE__, __LINE__, (s)).c_str(), ##__VA_ARGS__);
#define SPDLOG_TRACE(logger,
...) logger->trace("[ " __FILE__ ":" SPDLOG_STR_HELPER(__LINE__) " ] " __VA_ARGS__)
#endif
#endif
#else
#else
#define SPDLOG_TRACE(logger,
s,
...)
#define SPDLOG_TRACE(logger, ...)
#endif
#endif
#ifdef SPDLOG_DEBUG_ON
#ifdef SPDLOG_DEBUG_ON
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment