]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - gmqcc.h
Cleanups and update CHANGES
[xonotic/gmqcc.git] / gmqcc.h
diff --git a/gmqcc.h b/gmqcc.h
index 3f960b8462e92c18d5cc39799467cdd43db5c408..fcf7d836c8e94a55f70c92456e1015f9c86da26d 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -157,6 +157,8 @@ GMQCC_IND_STRING(GMQCC_VERSION_PATCH) \
 #   define GMQCC_UNLIKELY(X) (X)
 #endif
 
+#define GMQCC_ARRAY_COUNT(X) (sizeof(X) / sizeof((X)[0]))
+
 #ifndef _MSC_VER
 #   include <stdint.h>
 #else