Added ARRAY_LEN macro.

This commit is contained in:
Artem Kharytoniuk
2016-06-25 20:00:28 +03:00
parent 3c70828301
commit d4f7c1b467

View File

@@ -335,6 +335,7 @@ typedef int clipHandle_t;
#define MAX_QINT 0x7fffffff
#define MIN_QINT (-MAX_QINT-1)
#define ARRAY_LEN(x) (sizeof(x) / sizeof(*(x)))
// angle indexes
#define PITCH 0 // up / down