mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
enable final keyword by default. Can be disabled in tweakme.h for older compilers
This commit is contained in:
parent
e7cf25a1c0
commit
adbc22096a
@ -29,9 +29,11 @@
|
|||||||
#define SPDLOG_CONSTEXPR constexpr
|
#define SPDLOG_CONSTEXPR constexpr
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// See tweakme.h
|
// final keyword support. On by default. See tweakme.h
|
||||||
#if !defined(SPDLOG_FINAL)
|
#if defined(SPDLOG_NO_FINAL)
|
||||||
#define SPDLOG_FINAL
|
#define SPDLOG_FINAL
|
||||||
|
#else
|
||||||
|
#define SPDLOG_FINAL final
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__GNUC__) || defined(__clang__)
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
|
@ -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
|
// mode with recent compilers. See GCC's documentation for -Wsuggest-final-types
|
||||||
// for instance.
|
// for instance.
|
||||||
//
|
//
|
||||||
// #define SPDLOG_FINAL final
|
// #define SPDLOG_NO_FINAL
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
@ -141,6 +142,7 @@
|
|||||||
// #define SPDLOG_ENABLE_MESSAGE_COUNTER
|
// #define SPDLOG_ENABLE_MESSAGE_COUNTER
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Uncomment to customize level names (e.g. "MT TRACE")
|
// Uncomment to customize level names (e.g. "MT TRACE")
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user