macros: add NOINLINE (__attribute__((noinline)))

This commit is contained in:
Daniel Eklöf 2021-01-01 22:29:12 +01:00
parent fc79dbb5a3
commit 7d0fb3cccd
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -26,6 +26,12 @@
#define UNUSED
#endif
#if HAS_ATTRIBUTE(noinline)
#define NOINLINE __attribute__((noinline))
#else
#define NOINLINE
#endif
#if HAS_ATTRIBUTE(const)
#define CONST __attribute__((__const__))
#else