openMSX
Macros | Functions
countof.hh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define countof(array)   (sizeof(countofHelper(array)))

Functions

template<typename T , unsigned N>
char(& countofHelper (T(&)[N]))[N]

Macro Definition Documentation

#define countof (   array)    (sizeof(countofHelper(array)))

Definition at line 48 of file countof.hh.

Referenced by openmsx::FileOperations::getSystemDataDir().

Function Documentation

template<typename T , unsigned N>
char(& countofHelper ( T(&)  [N]) )[N]