Merge pull request #6998 from lioncash/log

Common: Remove unnecessary ~9 year old LOGGING preprocessor define
This commit is contained in:
Markus Wick 2018-05-28 09:33:21 +02:00 committed by GitHub
commit 40d3163b12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View File

@ -4,13 +4,6 @@
#pragma once
// Force enable logging in the right modes. For some reason, something had changed
// so that debugfast no longer logged.
#if defined(_DEBUG) || defined(DEBUGFAST)
#undef LOGGING
#define LOGGING 1
#endif
#if defined(__GNUC__) || __clang__
// Disable "unused function" warnings for the ones manually marked as such.
#define UNUSED __attribute__((unused))

View File

@ -81,7 +81,7 @@ void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const char*
#endif
;
#if defined LOGGING || defined _DEBUG || defined DEBUGFAST
#if defined(_DEBUG) || defined(DEBUGFAST)
#define MAX_LOGLEVEL LogTypes::LOG_LEVELS::LDEBUG
#else
#ifndef MAX_LOGLEVEL