summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 088eab2e68..c35b6b2916 100644
--- a/internal.h
+++ b/internal.h
@@ -19,6 +19,8 @@ extern "C" {
#endif
#endif
+#define numberof(array) ((int)(sizeof(array) / sizeof((array)[0])))
+
#define GCC_VERSION_SINCE(major, minor, patchlevel) \
(defined(__GNUC__) && !defined(__INTEL_COMPILER) && \
((__GNUC__ > (major)) || \