File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
GeneralsMD/Code/GameEngine/Include/Common
Generals/Code/GameEngine/Include/Common Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 33
33
34
34
#include " Common/Debug.h"
35
35
36
- #ifndef NO_DEBUG_CRC
36
+ #ifdef NO_DEBUG_CRC
37
+ #undef DEBUG_CRC
38
+ #else
37
39
#ifdef DEBUG_LOGGING
38
40
#define DEBUG_CRC
39
41
#endif
Original file line number Diff line number Diff line change 33
33
34
34
#include " Common/Debug.h"
35
35
36
- #ifndef NO_DEBUG_CRC
36
+ #ifdef NO_DEBUG_CRC
37
+ #undef DEBUG_CRC
38
+ #else
37
39
#ifdef DEBUG_LOGGING
38
40
#define DEBUG_CRC
39
41
#endif
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ set_property(CACHE RTS_DEBUG_STACKTRACE PROPERTY STRINGS DEFAULT ON OFF)
10
10
set (RTS_DEBUG_PROFILE "DEFAULT" CACHE STRING "Enables debug profiling. When DEFAULT, this option is enabled with DEBUG or INTERNAL" )
11
11
set_property (CACHE RTS_DEBUG_PROFILE PROPERTY STRINGS DEFAULT ON OFF )
12
12
13
- option (RTS_DEBUG_INCLUDE_DEBUG_LOG_IN_CRC_LOG "Include normal debug log in crc log" OFF )
13
+ set (RTS_DEBUG_CRC "DEFAULT" CACHE STRING "Enables debug CRC testing. When DEFAULT, this option is enabled with DEBUG_LOGGING" )
14
+ set_property (CACHE RTS_DEBUG_CRC PROPERTY STRINGS DEFAULT ON OFF )
15
+
16
+ option (RTS_DEBUG_INCLUDE_DEBUG_LOG_IN_CRC_LOG "Includes normal debug log in CRC log" OFF )
14
17
15
18
16
19
# Helper macro that handles DEFAULT ON OFF options
@@ -33,6 +36,7 @@ define_debug_option(RTS_DEBUG_LOGGING DEBUG_LOGGING DISABLE_DEBUG_LOGGING
33
36
define_debug_option (RTS_DEBUG_CRASHING DEBUG_CRASHING DISABLE_DEBUG_CRASHING DebugCrashing "Build with Debug Crashing" )
34
37
define_debug_option (RTS_DEBUG_STACKTRACE DEBUG_STACKTRACE DISABLE_DEBUG_STACKTRACE DebugStacktrace "Build with Debug Stacktracing" )
35
38
define_debug_option (RTS_DEBUG_PROFILE DEBUG_PROFILE DISABLE_DEBUG_PROFILE DebugProfile "Build with Debug Profiling" )
39
+ define_debug_option (RTS_DEBUG_CRC DEBUG_CRC NO_DEBUG_CRC DebugCRC "Build with Debug CRC Testing" )
36
40
37
41
if (RTS_DEBUG_INCLUDE_DEBUG_LOG_IN_CRC_LOG )
38
42
target_compile_definitions (core_config INTERFACE INCLUDE_DEBUG_LOG_IN_CRC_LOG )
You can’t perform that action at this time.
0 commit comments