]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - libs/string/pooledstring.cpp
Centralise compile checks
[xonotic/netradiant.git] / libs / string / pooledstring.cpp
1
2 #include "pooledstring.h"
3 #include "globaldefs.h"
4 #include "generic/static.h"
5
6 #if GDEF_DEBUG
7
8 namespace ExamplePooledString
9 {
10 void testStuff(){
11         PooledString< LazyStatic<StringPool> > a, b;
12         a = "monkey";
13         b = "monkey";
14         a = "";
15 }
16
17 struct Always
18 {
19         Always(){
20                 testStuff();
21         }
22 } always;
23 }
24
25 #endif