Skip to content

Commit df06517

Browse files
OmniBladexezon
authored andcommitted
[GEN][ZH] Change _INTERNAL macro to RTS_INTERNAL (#780)
1 parent 02d4ad9 commit df06517

File tree

741 files changed

+1582
-1582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

741 files changed

+1582
-1582
lines changed

Core/Libraries/Source/Compression/CompressionManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "EAC/huffcodex.h"
3333
#include "EAC/refcodex.h"
3434

35-
#ifdef _INTERNAL
35+
#ifdef RTS_INTERNAL
3636
// for occasional debugging...
3737
//#pragma optimize("", off)
3838
//#pragma message("************************************** WARNING, optimization disabled for debugging purposes")

Core/Libraries/Source/Compression/LZHCompress/NoxCompress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "NoxCompress.h"
2727
#include "CompLibHeader/lzhl.h"
2828

29-
#ifdef _INTERNAL
29+
#ifdef RTS_INTERNAL
3030
// for occasional debugging...
3131
//#pragma optimize("", off)
3232
//#pragma message("************************************** WARNING, optimization disabled for debugging purposes")

Core/Libraries/Source/WWVegas/WWLib/always.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

106106
#endif
107107

108-
#if (defined(RTS_DEBUG) || defined(_INTERNAL))
108+
#if (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
109109
#define MSGW3DNEW(MSG) new( MSG, 0 )
110110
#define MSGW3DNEWARRAY(MSG) new( MSG, 0 )
111111
#define W3DNEW new("W3D_" __FILE__, 0)

Core/Libraries/Source/WWVegas/WWLib/sharebuf.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class ShareBufferClass : public W3DMPO, public RefCountClass
7777

7878
protected:
7979

80-
#if (defined(RTS_DEBUG) || defined(_INTERNAL))
80+
#if (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
8181
const char* Msg;
8282
#endif
8383
T * Array;
@@ -90,7 +90,7 @@ class ShareBufferClass : public W3DMPO, public RefCountClass
9090
template <class T>
9191
ShareBufferClass<T>::ShareBufferClass(int count, const char* msg) :
9292
Count(count)
93-
#if (defined(RTS_DEBUG) || defined(_INTERNAL))
93+
#if (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
9494
, Msg(msg)
9595
#endif
9696
{
@@ -103,7 +103,7 @@ ShareBufferClass<T>::ShareBufferClass(const ShareBufferClass<T> & that) :
103103
Count(that.Count)
104104
{
105105
assert(Count > 0);
106-
#if (defined(RTS_DEBUG) || defined(_INTERNAL))
106+
#if (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
107107
Msg = that.Msg;
108108
#endif
109109
Array = MSGW3DNEWARRAY(Msg) T[Count];

Core/Tools/MapCacheBuilder/Source/WinMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110

111111
// PRIVATE TYPES //////////////////////////////////////////////////////////////
112112

113-
#ifdef _INTERNAL
113+
#ifdef RTS_INTERNAL
114114
// for occasional debugging...
115115
//#pragma optimize("", off)
116116
//#pragma message("************************************** WARNING, optimization disabled for debugging purposes")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class AsciiString
8989
// add a ctor/dtor, 'cuz they won't ever be called.
9090
struct AsciiStringData
9191
{
92-
#if defined(RTS_DEBUG) || defined(_INTERNAL)
92+
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
9393
const char* m_debugptr; // just makes it easier to read in the debugger
9494
#endif
9595
unsigned short m_refCount; // reference count

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
class AsciiString;
5252

53-
#if defined(RTS_DEBUG) && defined(_INTERNAL)
53+
#if defined(RTS_DEBUG) && defined(RTS_INTERNAL)
5454
#error "Only one at a time of these should ever be defined"
5555
#endif
5656

@@ -64,7 +64,7 @@ class AsciiString;
6464
//#define DISABLE_DEBUG_LOGGING
6565

6666
// by default, turn on ALLOW_DEBUG_UTILS if RTS_DEBUG is turned on.
67-
#if (defined(RTS_DEBUG) || defined(_INTERNAL)) && !defined(ALLOW_DEBUG_UTILS) && !defined(DISABLE_ALLOW_DEBUG_UTILS)
67+
#if (defined(RTS_DEBUG) || defined(RTS_INTERNAL)) && !defined(ALLOW_DEBUG_UTILS) && !defined(DISABLE_ALLOW_DEBUG_UTILS)
6868
#define ALLOW_DEBUG_UTILS 1
6969
#elif defined(DEBUG_LOGGING) || defined(DEBUG_CRASHING) || defined(DEBUG_STACKTRACE) || defined(DEBUG_PROFILE)
7070
// TheSuperHackers @tweak also turn on when any of the above options is already set.
@@ -120,8 +120,8 @@ class AsciiString;
120120
DEBUG_FLAG_LOG_TO_FILE = 0x01,
121121
DEBUG_FLAG_LOG_TO_CONSOLE = 0x02,
122122
DEBUG_FLAG_PREPEND_TIME = 0x04,
123-
#ifdef _INTERNAL
124-
// by default, _INTERNAL builds log to file, but not to console, in the interest
123+
#ifdef RTS_INTERNAL
124+
// by default, RTS_INTERNAL builds log to file, but not to console, in the interest
125125
// of speed. want console output? just change this line:
126126
DEBUG_FLAGS_DEFAULT = (DEBUG_FLAG_LOG_TO_FILE)
127127
#else

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class DrawModule : public DrawableModule
7777
virtual void releaseShadows(void) = 0; ///< frees all shadow resources used by this module - used by Options screen.
7878
virtual void allocateShadows(void) = 0; ///< create shadow resources if not already present. Used by Options screen.
7979

80-
#if defined(RTS_DEBUG) || defined(_INTERNAL)
80+
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
8181
virtual void getRenderCost(RenderCost & rc) const { }; ///< estimates the render cost of this draw module
8282
#endif
8383

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class AudioManager : public SubsystemInterface
136136
public:
137137
AudioManager();
138138
virtual ~AudioManager();
139-
#if defined(RTS_DEBUG) || defined(_INTERNAL)
139+
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
140140
virtual void audioDebugDisplay(DebugDisplayInterface *dd, void *userData, FILE *fp = NULL ) = 0;
141141
#endif
142142

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#include "Lib/BaseType.h"
5555

5656
// ----------------------------------------------------------------------------------------------
57-
#if defined(_INTERNAL) || defined(RTS_DEBUG)
57+
#if defined(RTS_INTERNAL) || defined(RTS_DEBUG)
5858
#define NO_DUMP_PERF_STATS
5959
#else
6060
#define NO_DUMP_PERF_STATS

0 commit comments

Comments
 (0)