#ifndef __ASSERT_H__ #define __ASSERT_H__ #define STATIC_ASSERT(COND,MSG) typedef char MSG[(COND) ? 1 : -1] #define ASSERT_SIZE(_struct, _size) STATIC_ASSERT(sizeof(_struct) == _size, _struct ## _is_not_size_ ## _size) #endif // __ASSERT_H__