diff options
author | Reinhard Tartler <siretart@tauware.de> | 2020-05-10 15:21:30 -0400 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2020-05-10 15:21:30 -0400 |
commit | ca7cf4be788d139b3464e86e724e2d0c07135419 (patch) | |
tree | f7b8bee2dc9cf2d6b8f80cc2da99106b7877920c /lib/common/Box.h | |
parent | d50f542209f3b5c27358fab6e8e3b575534b7b3a (diff) | |
parent | 657715ed754d69235aac62cd36f514f6dc65aab8 (diff) |
Update upstream source from tag 'upstream/0.13__git20200326.g8e8b63c'
Update to upstream version '0.13~~git20200326.g8e8b63c'
with Debian dir 146ac8a7ff562d7e5d267f163099a8a17834c057
Diffstat (limited to 'lib/common/Box.h')
-rw-r--r-- | lib/common/Box.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/common/Box.h b/lib/common/Box.h index 8ce2a625..5f629790 100644 --- a/lib/common/Box.h +++ b/lib/common/Box.h @@ -39,7 +39,7 @@ #include "CommonException.h" #include "Logging.h" -#ifndef BOX_RELEASE_BUILD +#ifndef BOX_RELEASE_BUILD // this is a debug build: extern bool AssertFailuresToSyslog; #define ASSERT_FAILS_TO_SYSLOG_ON {AssertFailuresToSyslog = true;} void BoxDebugAssertFailed(const char *cond, const char *file, int line); @@ -70,7 +70,7 @@ // Exception names #define EXCEPTION_CODENAMES_EXTENDED -#else +#else // this is a release build: #define ASSERT_FAILS_TO_SYSLOG_ON #define ASSERT(cond) @@ -80,19 +80,19 @@ // Box Backup builds release get extra information for exception logging #define EXCEPTION_CODENAMES_EXTENDED #define EXCEPTION_CODENAMES_EXTENDED_WITH_DESCRIPTION + + #ifdef BOX_MEMORY_LEAK_TESTING + #error BOX_MEMORY_LEAK_TESTING should not already be defined in release builds! + #endif #endif -#if defined DEBUG_LEAKS +#if defined DEBUG_LEAKS // optionally enable memory leak debugging even in release builds #ifdef PLATFORM_DISABLE_MEM_LEAK_TESTING #error Compiling with DEBUG_LEAKS enabled, but not supported on this platform #else #define BOX_MEMORY_LEAK_TESTING #endif -#elif defined BOX_RELEASE_BUILD - #ifndef PLATFORM_DISABLE_MEM_LEAK_TESTING - #define BOX_MEMORY_LEAK_TESTING - #endif -#endif // DEBUG_LEAKS || BOX_RELEASE_BUILD +#endif // DEBUG_LEAKS #ifdef BOX_MEMORY_LEAK_TESTING // Memory leak testing |