enable final keyword by default. Can be disabled in tweakme.h for older compilers

This commit is contained in:
gabime
2017-11-25 15:53:35 +02:00
parent e7cf25a1c0
commit adbc22096a
2 changed files with 8 additions and 4 deletions

View File

@@ -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__)