Home | History | Annotate | Download | only in base

Lines Matching defs:arraysize

24 //   COMPILE_ASSERT(ARRAYSIZE(content_type_names) == CONTENT_NUM_TYPES,
107 // The arraysize(arr) macro returns the # of elements in an array arr.
109 // used in defining new arrays, for example. If you use arraysize on
112 // One caveat is that arraysize() doesn't accept any array of an
114 // cases, you have to use the unsafe ARRAYSIZE() macro below. This is
118 // This template function declaration is used in defining arraysize.
132 #define arraysize(array) (sizeof(ArraySizeHelper(array)))
134 // ARRAYSIZE performs essentially the same calculation as arraysize,
136 // functions. It's less safe than arraysize as it accepts some
137 // (although not all) pointers. Therefore, you should use arraysize
140 // The expression ARRAYSIZE(a) is a compile-time constant of type
143 // ARRAYSIZE catches a few type errors. If you see a compiler error
147 // when using ARRAYSIZE, you are (wrongfully) giving it a pointer.
148 // You should only use ARRAYSIZE on statically allocated arrays.
153 // ARRAYSIZE(arr) works by inspecting sizeof(arr) (the # of bytes in
175 // Starting with Visual C++ 2005, WinNT.h includes ARRAYSIZE.
177 #define ARRAYSIZE(a) \