Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
53ac379b
Commit
53ac379b
authored
Oct 11, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed extra whitespace from SDPLOG_TRACE message
parent
10e809cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
include/spdlog/spdlog.h
include/spdlog/spdlog.h
+11
-3
No files found.
include/spdlog/spdlog.h
View file @
53ac379b
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
// spdlog main header file.
// spdlog main header file.
// see example.cpp for usage example
// see example.cpp for usage example
#ifndef SPDLOG_H
#define SPDLOG_H
#pragma once
#pragma once
#include "spdlog/common.h"
#include "spdlog/common.h"
...
@@ -12,6 +14,8 @@
...
@@ -12,6 +14,8 @@
#include "spdlog/logger.h"
#include "spdlog/logger.h"
#include "spdlog/version.h"
#include "spdlog/version.h"
#include "spdlog/default_logger.h"
#include <chrono>
#include <chrono>
#include <functional>
#include <functional>
#include <memory>
#include <memory>
...
@@ -142,11 +146,13 @@ inline void shutdown()
...
@@ -142,11 +146,13 @@ inline void shutdown()
#define SPDLOG_STR_H(x) #x
#define SPDLOG_STR_H(x) #x
#define SPDLOG_STR_HELPER(x) SPDLOG_STR_H(x)
#define SPDLOG_STR_HELPER(x) SPDLOG_STR_H(x)
#ifdef _MSC_VER
#ifdef _MSC_VER
#define SPDLOG_TRACE(logger, ...) logger->trace("[ " __FILE__ "(" SPDLOG_STR_HELPER(__LINE__) ") ] " __VA_ARGS__)
#define SPDLOG_TRACE(logger, ...) \
logger->trace("[ "__FILE__ \
"(" SPDLOG_STR_HELPER(__LINE__) ")] " __VA_ARGS__)
#else
#else
#define SPDLOG_TRACE(logger, ...) \
#define SPDLOG_TRACE(logger, ...) \
logger->trace("[
" __FILE__ ":" SPDLOG_STR_HELPER(__LINE__) " ]"
\
logger->trace("[
" __FILE__ ":" SPDLOG_STR_HELPER(__LINE__) "]"
\
" " __VA_ARGS__)
" " __VA_ARGS__)
#endif
#endif
#else
#else
#define SPDLOG_TRACE(logger, ...) (void)0
#define SPDLOG_TRACE(logger, ...) (void)0
...
@@ -159,3 +165,5 @@ inline void shutdown()
...
@@ -159,3 +165,5 @@ inline void shutdown()
#endif
#endif
}
// namespace spdlog
}
// namespace spdlog
#endif // #define SPDLOG_H
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