ApraPipes
1.0
Toggle main menu visibility
Main Page
Related Pages
Topics
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
c
d
f
g
i
m
p
s
v
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
y
Related Symbols
a
b
e
f
m
n
p
•
All
Classes
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
Loading...
Searching...
No Matches
GLUtils.h
1
// Get number of elements in an array:
2
#define NELEM(array) (sizeof(array) / sizeof(*(array)))
3
4
// Loop over an array of given size:
5
#define FOREACH_NELEM(array, nelem, iter) \
6
for (__typeof__(*(array)) *iter = (array); \
7
iter < (array) + (nelem); \
8
iter++)
9
10
// Loop over an array of known size:
11
#define FOREACH(array, iter) \
12
FOREACH_NELEM(array, NELEM(array), iter)
base
include
GLUtils.h
Source Commit: 312f43c