1
0
forked from 0ad/0ad

Made AT_STARTUP use an unnamed namespace, to avoid collisions between structs in different files that happen to have the same name (which sometimes causes the constructors to get mixed up by the linker)

This was SVN commit r4378.
This commit is contained in:
Ykkrosh 2006-09-23 00:01:00 +00:00
parent a1a7dac59c
commit 714e436e3c

View File

@ -149,10 +149,10 @@ STMT(\
* statically). see http://www.cbloom.com/3d/techdocs/more_coding.txt
**/
#define AT_STARTUP(code__)\
static struct UID__\
namespace { struct UID__\
{\
UID__() { code__; }\
} UID2__;\
} UID2__; }
/**