Diligent Engine  v.2.4.g
Macros | Functions
AndroidPlatformDefinitions.h File Reference
#include "../../../Primitives/interface/CommonDefinitions.h"
#include <cstddef>

Go to the source code of this file.

Macros

#define _countof(_Array)   (sizeof(*__countof_helper(_Array)) + 0)
 

Functions

template<typename _CountofType , std::size_t _SizeOfArray>
char(* __countof_helper (_CountofType(&_Array)[_SizeOfArray]))[_SizeOfArray]
 

Macro Definition Documentation

◆ _countof

#define _countof (   _Array)    (sizeof(*__countof_helper(_Array)) + 0)

Function Documentation

◆ __countof_helper()

template<typename _CountofType , std::size_t _SizeOfArray>
char(* __countof_helper ( _CountofType(&)  _Array[_SizeOfArray]) )[_SizeOfArray]