diff options
Diffstat (limited to 'macros.h')
| -rw-r--r-- | macros.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -26,6 +26,18 @@ #define UNUSED #endif +#if HAS_ATTRIBUTE(noinline) + #define NOINLINE __attribute__((noinline)) +#else + #define NOINLINE +#endif + +#if HAS_ATTRIBUTE(const) + #define CONST __attribute__((__const__)) +#else + #define CONST +#endif + #if GNUC_AT_LEAST(3, 0) || HAS_ATTRIBUTE(malloc) #define MALLOC __attribute__((__malloc__)) #else |
