Changeset 38457 in webkit for trunk/JavaScriptCore/wtf
- Timestamp:
- Nov 16, 2008, 3:07:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/StdLibExtras.h
r38411 r38457 24 24 */ 25 25 26 #include <wtf/Platform.h> 27 26 28 // Use these to declare and define a static local variable (static T;) so that 27 29 // it is leaked so that its destructors are not called at exit. Using this 28 30 // macro also allows workarounds for various compiler bugs. 31 #if COMPILER(GCC) && (__GNUC__ == 4) && (__GNUC_MINOR__ == 0) && (__GNUC_PATCHLEVEL__ == 1) && (__APPLE_CC__ == 5465) 29 32 #define DEFINE_STATIC_LOCAL(type, name, arguments) \ 30 33 static type* name##Ptr = new type arguments; \ 31 34 type& name = *name##Ptr 35 #else 36 #define DEFINE_STATIC_LOCAL(type, name, arguments) \ 37 static type& name = *new type arguments 38 #endif
Note:
See TracChangeset
for help on using the changeset viewer.