Changeset 70425 in webkit for trunk/JavaScriptCore/wtf/StdLibExtras.h
- Timestamp:
- Oct 24, 2010, 4:20:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/StdLibExtras.h
r70419 r70425 111 111 } 112 112 113 // Macro that returns a compile time constant with the length of an array, but gives an error if passed a non-array. 114 template<typename T, size_t Size> char (&ArrayLengthHelperFunction(T (&)[Size]))[Size]; 115 #define WTF_ARRAY_LENGTH(array) sizeof(::WTF::ArrayLengthHelperFunction(array)) 116 113 117 } // namespace WTF 114 118
Note:
See TracChangeset
for help on using the changeset viewer.