gmio_core: add utility macro GMIO_ARRAY_SIZE()
This commit is contained in:
parent
02668e0cb0
commit
a26008be93
@ -231,5 +231,8 @@ typedef double gmio_float64_t;
|
||||
# define GMIO_PRAGMA_MSVC_WARNING_POP()
|
||||
#endif
|
||||
|
||||
/*! Expands to the size(item count) of an array */
|
||||
#define GMIO_ARRAY_SIZE(array) sizeof(array) / sizeof(*array)
|
||||
|
||||
#endif /* GMIO_GLOBAL_H */
|
||||
/*! @} */
|
||||
|
Loading…
Reference in New Issue
Block a user