wavelength 1.0.0
Loading...
Searching...
No Matches
ArraySize.h File Reference

Go to the source code of this file.

Macros

#define ARRAY_SIZE(array)
 The number of elements of an array, as an int.

Macro Definition Documentation

◆ ARRAY_SIZE

#define ARRAY_SIZE ( array)
Value:
(static_cast<int>(sizeof(array) / sizeof((array)[0])))

The number of elements of an array, as an int.

The argument must be an array, not a pointer.