Don't define CStrings in headers. A new instance will be created in every
file that uses the header. A string in GameConstantsAndTypes.h may be duplicated dozens of times; since it's not a POD, the compiler can't omit or merge it.
This commit is contained in:
@@ -17,6 +17,7 @@ LuaFunction( X##ToString, X##ToString( (X) IArg(1) ) );
|
||||
#define LuaStringToX(X) \
|
||||
LuaFunction( StringTo##X, (X) StringTo##X( SArg(1) ) );
|
||||
|
||||
const CString RANKING_TO_FILL_IN_MARKER[NUM_PLAYERS] = {"#P1#","#P2#"};
|
||||
|
||||
static const CString RadarCategoryNames[] = {
|
||||
"Stream",
|
||||
|
||||
Reference in New Issue
Block a user