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:
parent
a1a7dac59c
commit
714e436e3c
@ -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__; }
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user