add SPDLOG_FINAL information in tweakme.h

This commit is contained in:
Jean-Michaël Celerier 2017-04-28 19:25:31 +02:00
parent 53138c20fb
commit 4da5fa256c
2 changed files with 9 additions and 2 deletions

View File

@ -29,8 +29,7 @@
#define SPDLOG_CONSTEXPR constexpr #define SPDLOG_CONSTEXPR constexpr
#endif #endif
// If an user of the library is not inheriting from the types provided by it, // See tweakme.h
// he can #define SPDLOG_FINAL final to get additional optimizations
#if !defined(SPDLOG_FINAL) #if !defined(SPDLOG_FINAL)
#define SPDLOG_FINAL #define SPDLOG_FINAL
#endif #endif

View File

@ -106,3 +106,11 @@
// //
// #define SPDLOG_PREVENT_CHILD_FD // #define SPDLOG_PREVENT_CHILD_FD
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Uncomment to mark some types as final, allowing more optimizations in release
// mode with recent compilers. See GCC's documentation for -Wsuggest-final-types
// for instance.
//
// #define SPDLOG_FINAL final
///////////////////////////////////////////////////////////////////////////////