File tree 2 files changed +8
-2
lines changed
GeneralsMD/Code/GameEngine/Source/Common/System
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 52
52
// Uncomment this to show normal logging stuff in the crc logging.
53
53
// This can be helpful for context, but can also clutter diffs because normal logs arn't necessarily
54
54
// deterministic or the same on all peers in multiplayer games.
55
- // #define NORMAL_LOG_IN_CRC_LOG
55
+ // #define INCLUDE_DEBUG_LOG_IN_CRC_LOG
56
56
57
57
#define DEBUG_THREADSAFE
58
58
#ifdef DEBUG_THREADSAFE
@@ -246,7 +246,7 @@ static void doLogOutput(const char *buffer)
246
246
::OutputDebugString (buffer);
247
247
}
248
248
249
- #ifdef NORMAL_LOG_IN_CRC_LOG
249
+ #ifdef INCLUDE_DEBUG_LOG_IN_CRC_LOG
250
250
addCRCDebugLineNoCounter (" %s" , buffer);
251
251
#endif
252
252
}
Original file line number Diff line number Diff line change @@ -10,12 +10,14 @@ 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
14
14
15
15
16
add_feature_info(DebugLogging RTS_DEBUG_LOGGING "Build with Debug Logging" )
16
17
add_feature_info(DebugCrashing RTS_DEBUG_CRASHING "Build with Debug Crashing" )
17
18
add_feature_info(DebugStacktrace RTS_DEBUG_STACKTRACE "Build with Debug Stacktracing" )
18
19
add_feature_info(DebugProfile RTS_DEBUG_PROFILE "Build with Debug Profiling" )
20
+ add_feature_info(DebugIncludeDebugLogInCrcLog RTS_DEBUG_INCLUDE_DEBUG_LOG_IN_CRC_LOG "Include debug logs in crc logs" )
19
21
20
22
21
23
# Helper macro that handles DEFAULT ON OFF options
@@ -36,3 +38,7 @@ define_debug_option(RTS_DEBUG_LOGGING DEBUG_LOGGING DISABLE_DEBUG_LOGGING
36
38
define_debug_option(RTS_DEBUG_CRASHING DEBUG_CRASHING DISABLE_DEBUG_CRASHING )
37
39
define_debug_option(RTS_DEBUG_STACKTRACE DEBUG_STACKTRACE DISABLE_DEBUG_STACKTRACE)
38
40
define_debug_option(RTS_DEBUG_PROFILE DEBUG_PROFILE DISABLE_DEBUG_PROFILE )
41
+
42
+ if (RTS_DEBUG_INCLUDE_DEBUG_LOG_IN_CRC_LOG)
43
+ target_compile_definitions (core_config INTERFACE INCLUDE_DEBUG_LOG_IN_CRC_LOG)
44
+ endif ()
You can’t perform that action at this time.
0 commit comments