Add COUNT macro and apply
This commit is contained in:
committed by
Richard Wackerbarth
parent
d85861d296
commit
278aa15301
@ -22,4 +22,6 @@
|
||||
#define ENABLED(b) _CAT(SWITCH_ENABLED_, b)
|
||||
#define DISABLED(b) (!_CAT(SWITCH_ENABLED_, b))
|
||||
|
||||
#define COUNT(a) (sizeof(a)/sizeof(*a))
|
||||
|
||||
#endif //__MACROS_H
|
||||
|
Reference in New Issue
Block a user