diff options
Diffstat (limited to 'src/base/macros.h')
| -rw-r--r-- | src/base/macros.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/base/macros.h b/src/base/macros.h index 52013dacc2..48cb9c013a 100644 --- a/src/base/macros.h +++ b/src/base/macros.h @@ -130,6 +130,12 @@ char (&ArraySizeHelper(T (&array)[N]))[N]; #define LIKELY(x) __builtin_expect((x), true) #define UNLIKELY(x) __builtin_expect((x), false) +#ifdef NDEBUG +#define ALWAYS_INLINE +#else +#define ALWAYS_INLINE __attribute__((always_inline)) +#endif + // bionic and glibc both have TEMP_FAILURE_RETRY, but Mac OS' libc doesn't. #ifndef TEMP_FAILURE_RETRY #define TEMP_FAILURE_RETRY(exp) ({ \ |