Add ARRAY_SIZE
This commit is contained in:
parent
27f1dccc9e
commit
8c90323b6a
@ -4,4 +4,6 @@
|
|||||||
#define xstr(s) str(s)
|
#define xstr(s) str(s)
|
||||||
#define str(s) #s
|
#define str(s) #s
|
||||||
|
|
||||||
|
#define ARRAY_SIZE(X) (sizeof(X) / sizeof((X)[0]))
|
||||||
|
|
||||||
#endif // _COMMON_MACRO_H
|
#endif // _COMMON_MACRO_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user