worldspawn/libs/string/pooledstring.cpp

26 lines
299 B
C++
Raw Normal View History

2020-11-17 11:16:16 +00:00
#include "pooledstring.h"
#include "globaldefs.h"
#include "generic/static.h"
#if GDEF_DEBUG
namespace ExamplePooledString
{
void testStuff(){
PooledString< LazyStatic<StringPool> > a, b;
a = "monkey";
b = "monkey";
a = "";
}
struct Always
{
Always(){
testStuff();
}
} always;
}
#endif