Home | History | Annotate | Download | only in internal

Lines Matching defs:arraysize

66 // The arraysize(arr) macro returns the # of elements in an array arr.
68 // used in defining new arrays, for example. If you use arraysize on
71 // One caveat is that arraysize() doesn't accept any array of an
73 // cases, you have to use the unsafe ARRAYSIZE() macro below. This is
77 // This template function declaration is used in defining arraysize.
91 #define arraysize(array) (sizeof(ArraySizeHelper(array)))
93 // ARRAYSIZE performs essentially the same calculation as arraysize,
95 // functions. It's less safe than arraysize as it accepts some
96 // (although not all) pointers. Therefore, you should use arraysize
99 // The expression ARRAYSIZE(a) is a compile-time constant of type
102 // ARRAYSIZE catches a few type errors. If you see a compiler error
106 // when using ARRAYSIZE, you are (wrongfully) giving it a pointer.
107 // You should only use ARRAYSIZE on statically allocated arrays.
112 // ARRAYSIZE(arr) works by inspecting sizeof(arr) (the # of bytes in
134 // Starting with Visual C++ 2005, WinNT.h includes ARRAYSIZE. However,
137 // that Ceres uses. Instead, rename ARRAYSIZE to CERES_ARRAYSIZE.