Add COUNT macro and apply
This commit is contained in:
parent
d85861d296
commit
278aa15301
7 changed files with 16 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue