fontCache
50 FontCache* fontCache() 51 { 52 DEFINE_STATIC_LOCAL(FontCache, globalFontCache, ()); type = FontCache, name = globalFontCache, arguments = () static FontCache& globalFontCache = *new FontCache () 53 return &globalFontCache; 54 }
33 // Use this to declare and define a static local variable (static T;) so that 34 // it is leaked so that its destructors are not called at exit. 35 #ifndef DEFINE_STATIC_LOCAL 36 #define DEFINE_STATIC_LOCAL(type, name, arguments) \ 37 static type& name = *new type arguments 38 #endif