Home | History | Annotate | Download | only in vki

Lines Matching full:vki_static_assert

105 // VKI_STATIC_ASSERT(). Inspired by BUILD_BUG_ON() from
115 template <bool b> struct vki_static_assert { int m_bitfield:(2*b-1); };
116 #define VKI_STATIC_ASSERT(expr) \
117 (sizeof(vki_static_assert<(expr)>) - sizeof(int))
119 #define VKI_STATIC_ASSERT(expr) (sizeof(struct { int:-!(expr); }))
128 (VKI_STATIC_ASSERT((sizeof(t) == sizeof(t[1]) \