26 #include "../../../Primitives/interface/CommonDefinitions.h"
28 #if DILIGENT_C_INTERFACE
30 # define _countof(arr) (sizeof(arr) / sizeof(arr[0]))
36 template <
typename _CountofType, std::
size_t _SizeOfArray>
37 char (*
__countof_helper(_CountofType (&_Array)[_SizeOfArray]))[_SizeOfArray];
38 # define _countof(_Array) (sizeof(*__countof_helper(_Array)) + 0)