mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 22:15:57 +03:00
Add a macro to get the size of an array.
This commit is contained in:
parent
73548e8a16
commit
df5a8d6662
1 changed files with 3 additions and 0 deletions
|
@ -84,6 +84,9 @@
|
|||
/** Get the bigger value */
|
||||
#define MAX(a,b) ((a) < (b) ? (b) : (a))
|
||||
|
||||
/** Get the size of an array */
|
||||
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
|
||||
|
||||
/**
|
||||
* }@
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue