Searched defs:arraysize (Results 1 - 1 of 1) sorted by relevance

/system/core/base/include/android-base/
H A Dmacros.h58 // The arraysize(arr) macro returns the # of elements in an array arr.
60 // used in defining new arrays, for example. If you use arraysize on
63 // One caveat is that arraysize() doesn't accept any array of an
69 // This template function declaration is used in defining arraysize.
75 #define arraysize(array) (sizeof(ArraySizeHelper(array))) macro
77 // ARRAYSIZE_UNSAFE performs essentially the same calculation as arraysize,
79 // functions. It's less safe than arraysize as it accepts some
80 // (although not all) pointers. Therefore, you should use arraysize

Completed in 1725 milliseconds