30 #include "../../../Primitives/interface/CommonDefinitions.h"
32 #if DILIGENT_C_INTERFACE
34 # define _countof(arr) (sizeof(arr) / sizeof(arr[0]))
40 template <
typename _CountofType, std::
size_t _SizeOfArray>
41 char (*
__countof_helper(_CountofType (&_Array)[_SizeOfArray]))[_SizeOfArray];
42 # define _countof(_Array) (sizeof(*__countof_helper(_Array)) + 0)