util: make offsetof/parent-of-member actually constexpr

This commit is contained in:
Michael Scire 2020-01-15 21:35:14 -08:00
parent f3fa680d5d
commit da59334c5e
6 changed files with 211 additions and 35 deletions

View file

@ -34,6 +34,7 @@
#define ALIGNED(algn) __attribute__((aligned(algn)))
#define NORETURN __attribute__((noreturn))
#define WEAK_SYMBOL __attribute__((weak))
#define ALWAYS_INLINE_LAMBDA __attribute__((always_inline))
#define ALWAYS_INLINE inline __attribute__((always_inline))
#define NOINLINE __attribute__((noinline))