ROSE
0.11.145.147
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 Sep 30 2024 03:25:41 for ROSE by
1.9.8