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
adbc2209
Commit
adbc2209
authored
Nov 25, 2017
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable final keyword by default. Can be disabled in tweakme.h for older compilers
parent
e7cf25a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
include/spdlog/common.h
include/spdlog/common.h
+4
-2
include/spdlog/tweakme.h
include/spdlog/tweakme.h
+4
-2
No files found.
include/spdlog/common.h
View file @
adbc2209
...
...
@@ -29,9 +29,11 @@
#define SPDLOG_CONSTEXPR constexpr
#endif
// See tweakme.h
#if
!defined(SPDLOG
_FINAL)
//
final keyword support. On by default.
See tweakme.h
#if
defined(SPDLOG_NO
_FINAL)
#define SPDLOG_FINAL
#else
#define SPDLOG_FINAL final
#endif
#if defined(__GNUC__) || defined(__clang__)
...
...
include/spdlog/tweakme.h
View file @
adbc2209
...
...
@@ -126,11 +126,12 @@
///////////////////////////////////////////////////////////////////////////////
// Uncomment to mark some types as final, allowing more optimizations in release
// Uncomment if your compiler doesn't support the "final" keyword.
// The final keyword allows more optimizations in release
// mode with recent compilers. See GCC's documentation for -Wsuggest-final-types
// for instance.
//
// #define SPDLOG_
FINAL final
// #define SPDLOG_
NO_FINAL
///////////////////////////////////////////////////////////////////////////////
...
...
@@ -141,6 +142,7 @@
// #define SPDLOG_ENABLE_MESSAGE_COUNTER
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Uncomment to customize level names (e.g. "MT TRACE")
//
...
...
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