]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
Remove an useless null check.
[xonotic/darkplaces.git] / common.h
index aa0491a2b1eb3e6873c64895229bbbe8373bde05..6e45808efd5f8fdfbd9dc98294727f7ac0ce62f9 100644 (file)
--- a/common.h
+++ b/common.h
@@ -383,5 +383,7 @@ char **XPM_DecodeString(const char *in);
 
 size_t base64_encode(unsigned char *buf, size_t buflen, size_t outbuflen);
 
+#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+
 #endif