xmscore  1.0
carray.h
Go to the documentation of this file.
1 #pragma once
2 //------------------------------------------------------------------------------
8 //------------------------------------------------------------------------------
9 
10 //------------------------------------------------------------------------------
14 //------------------------------------------------------------------------------
15 #define XM_COUNTOF(array) (sizeof(::xms::caArraySizeHelper(array)))
16 
17 //----- Namespace declaration --------------------------------------------------
18 namespace xms
19 {
20 //------------------------------------------------------------------------------
38 //------------------------------------------------------------------------------
39 template <typename T, size_t N>
40 char (&caArraySizeHelper(T (&array)[N]))[N];
41 
42 } // namespace xms