[詳解] 6 #ifndef AMDAEMON_UTIL_STATICASSERT_H 7 #define AMDAEMON_UTIL_STATICASSERT_H 17 #define AMDAEMON_STATIC_ASSERT(flag) static_assert(flag, #flag) 22 #define AMDAEMON_STATIC_ASSERT_MSG(flag,msg) static_assert(flag, msg) 27 #define AMDAEMON_STATIC_ARRAYSIZE_ASSERT(arr,size) ¥ 28 AMDAEMON_STATIC_ASSERT(AMDAEMON_ARRAYSIZE(arr) == (size)) 32 #endif // AMDAEMON_UTIL_STATICASSERT_H