Browse Source

Add ARRAY_SIZE macro

Signed-off-by: falkTX <falktx@falktx.com>
pull/330/head
falkTX 4 years ago
parent
commit
601212430b
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      distrho/src/DistrhoDefines.h

+ 3
- 0
distrho/src/DistrhoDefines.h View File

@@ -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;


Loading…
Cancel
Save