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