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:
Glenn Maynard
2005-06-09 04:03:08 +00:00
parent 4cbef95dcb
commit 6be07b3d5d
6 changed files with 39 additions and 20 deletions
+1
View File
@@ -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",