DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 601212430b2026a32aeb610f834532f4eb9beb36
parent a6f3835cab87df29651640cf54d86b20dbecf060
Author: falkTX <falktx@falktx.com>
Date:   Fri, 24 Sep 2021 12:44:57 +0100

Add ARRAY_SIZE macro

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/src/DistrhoDefines.h | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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;