ROSE
0.11.145.192
src
util
ROSE_NELMTS.h
1
#ifndef ROSE_NELMTS_H
2
#define ROSE_NELMTS_H
3
5
// Number of elements in a statically allocated array.
6
//
7
// int foo[5];
8
// assert(ROSE_NELMTS(foo) == 5)
9
//
11
12
#ifndef ROSE_NELMTS
13
#define ROSE_NELMTS(X) (sizeof(X) / sizeof((X)[0]))
14
#endif
15
16
#endif
Generated on Mon Dec 16 2024 03:17:11 for ROSE by
1.9.8