Wrapper ARRAY_SIZE macro into ifndef

pull/15/head
Sergey Lyubka 10 years ago
parent 1c59641398
commit 4e9adb59f3
  1. 5
      slre.c

@ -25,9 +25,12 @@
#define MAX_BRANCHES 100
#define MAX_BRACKETS 100
#define ARRAY_SIZE(ar) (int) (sizeof(ar) / sizeof((ar)[0]))
#define FAIL_IF(condition, error_code) if (condition) return (error_code)
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(ar) (int) (sizeof(ar) / sizeof((ar)[0]))
#endif
#ifdef SLRE_DEBUG
#define DBG(x) printf x
#else

Loading…
Cancel
Save