Skip to content

Commit fd60314

Browse files
committed
[GEN][ZH] Remove or repurpose RTS_INTERNAL specific code (#1231)
1 parent 6f91870 commit fd60314

File tree

26 files changed

+18
-83
lines changed

26 files changed

+18
-83
lines changed

Core/Libraries/Source/WWVegas/WW3D2/streakRender.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ VertexFormatXYZUV1 *StreakRendererClass::getVertexBuffer(unsigned int number)
14091409
m_vertexBufferSize = numberToAlloc;
14101410
}
14111411

1412-
#ifdef RTS_INTERNAL
1412+
#ifdef RTS_DEBUG
14131413
for (unsigned i = 0; i < number; ++i)
14141414
{
14151415
m_vertexBuffer[i].x = m_vertexBuffer[i].y = m_vertexBuffer[i].z = m_vertexBuffer[i].u1 = m_vertexBuffer[i].v1 = (float)0xdeadbeef;

Core/Libraries/Source/debug/debug.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@
8383
- Release: XXX.lib
8484
*/
8585

86-
#if defined(RTS_DEBUG) && defined(RTS_INTERNAL)
87-
#error "Only either RTS_DEBUG or RTS_INTERNAL should ever be defined"
88-
#endif
89-
9086
// Define which libraries to use.
9187
#if defined(RTS_DEBUG) || defined(RTS_PROFILE)
9288
# define HAS_ASSERTS

Core/Libraries/Source/debug/debug_debug.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,9 +1437,7 @@ void Debug::WriteBuildInfo(void)
14371437
(*this) << " " << m_version;
14381438
if (*m_intVersion)
14391439
(*this) << " internal " << m_intVersion;
1440-
#if defined(RTS_INTERNAL)
1441-
operator<<(" internal");
1442-
#elif defined(RTS_DEBUG)
1440+
#if defined(RTS_DEBUG)
14431441
operator<<(" debug");
14441442
#elif defined(RTS_PROFILE)
14451443
operator<<(" profile");

Core/Libraries/Source/profile/profile.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
#ifndef PROFILE_H // Include guard
3333
#define PROFILE_H
3434

35-
#if defined(RTS_DEBUG) && defined(RTS_INTERNAL)
36-
#error "Only either RTS_DEBUG or RTS_INTERNAL should ever be defined"
37-
#endif
38-
3935
// include all our public header files (use double quotes here)
4036
#include "profile_doc.h"
4137
#include "profile_highlevel.h"

Generals/Code/GameEngine/Include/Common/Debug.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@
5050

5151
class AsciiString;
5252

53-
#if defined(RTS_DEBUG) && defined(RTS_INTERNAL)
54-
#error "Only one at a time of these should ever be defined"
55-
#endif
56-
5753
// These are stolen from the WW3D Debug file. REALLY useful. :-)
5854
#define STRING_IT(a) #a
5955
#define TOKEN_IT(a) STRING_IT(,##a)
@@ -120,8 +116,8 @@ class AsciiString;
120116
DEBUG_FLAG_LOG_TO_FILE = 0x01,
121117
DEBUG_FLAG_LOG_TO_CONSOLE = 0x02,
122118
DEBUG_FLAG_PREPEND_TIME = 0x04,
123-
#ifdef RTS_INTERNAL
124-
// by default, RTS_INTERNAL builds log to file, but not to console, in the interest
119+
#ifdef RTS_PROFILE
120+
// by default, RTS_PROFILE builds log to file, but not to console, in the interest
125121
// of speed. want console output? just change this line:
126122
DEBUG_FLAGS_DEFAULT = (DEBUG_FLAG_LOG_TO_FILE)
127123
#else

Generals/Code/GameEngine/Include/Common/StateMachine.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ class Object;
5151
#if defined(RTS_DEBUG)
5252
#define STATE_MACHINE_DEBUG
5353
#endif
54-
#if defined(RTS_INTERNAL)
55-
#define STATE_MACHINE_DEBUG //uncomment to debug state machines in internal. jba.
56-
#endif
5754

5855
//-----------------------------------------------------------------------------
5956
//-----------------------------------------------------------------------------

Generals/Code/GameEngine/Include/GameLogic/ScriptEngine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Player;
5050
class PolygonTrigger;
5151
class ObjectTypes;
5252

53-
#ifdef RTS_INTERNAL
53+
#ifdef RTS_PROFILE
5454
#define SPECIAL_SCRIPT_PROFILING
5555
#endif
5656

Generals/Code/GameEngine/Source/Common/GameEngine.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,6 @@ void GameEngine::init()
257257
#ifdef DEBUG_LOGGING
258258
#if defined RTS_DEBUG
259259
const char *buildType = "Debug";
260-
#elif defined RTS_INTERNAL
261-
const char *buildType = "Internal";
262260
#else
263261
const char *buildType = "Release";
264262
#endif

Generals/Code/GameEngine/Source/Common/System/Debug.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ extern const char *gAppPrefix; /// So WB can have a different log file name.
8383

8484
#ifdef DEBUG_LOGGING
8585

86-
#if defined(RTS_INTERNAL)
87-
#define DEBUG_FILE_NAME "DebugLogFileI"
88-
#define DEBUG_FILE_NAME_PREV "DebugLogFilePrevI"
89-
#elif defined(RTS_DEBUG)
86+
#if defined(RTS_DEBUG)
9087
#define DEBUG_FILE_NAME "DebugLogFileD"
9188
#define DEBUG_FILE_NAME_PREV "DebugLogFilePrevD"
9289
#else

Generals/Code/GameEngine/Source/Common/version.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ UnicodeString Version::getUnicodeVersion( void )
101101
version.concat(UnicodeString(L" Debug"));
102102
#endif
103103

104-
#ifdef RTS_INTERNAL
105-
version.concat(UnicodeString(L" Internal"));
106-
#endif
107-
108104
return version;
109105
}
110106

@@ -122,10 +118,6 @@ UnicodeString Version::getFullUnicodeVersion( void )
122118
version.concat(UnicodeString(L" Debug"));
123119
#endif
124120

125-
#ifdef RTS_INTERNAL
126-
version.concat(UnicodeString(L" Internal"));
127-
#endif
128-
129121
return version;
130122
}
131123

0 commit comments

Comments
 (0)