diff --git a/distrho/src/DistrhoDefines.h b/distrho/src/DistrhoDefines.h index afff900e..ffd407f1 100644 --- a/distrho/src/DistrhoDefines.h +++ b/distrho/src/DistrhoDefines.h @@ -199,6 +199,9 @@ private: \ # pragma warning(disable:4244) /* possible loss of data */ #endif +/* Useful macros */ +#define ARRAY_SIZE(ARRAY) sizeof(ARRAY)/sizeof(ARRAY[0]) + /* Useful typedefs */ typedef unsigned char uchar; typedef unsigned short int ushort;