diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index 6285a15..c34892b 100644 --- a/src/common.h +++ b/src/common.h @@ -31,4 +31,6 @@ #define MIN(x, y) ((x) < (y) ? (x) : (y)) #define MAX(x, y) ((x) > (y) ? (x) : (y)) +#define lengthof(xs) (sizeof(xs) / sizeof(*(xs))) + #endif /* !ORYX_COMMON_H */ |