Baselib_StaticAssert.h 294 B

123456789
  1. #pragma once
  2. // C99 compatible static_assert
  3. // Use static_assert in all C++ code directly.
  4. #ifdef __cplusplus
  5. #define BASELIB_STATIC_ASSERT(EXPR_, MSG_) static_assert(EXPR_, MSG_)
  6. #else
  7. #define BASELIB_STATIC_ASSERT(EXPR_, MSG_) COMPILER_C_STATIC_ASSERT(EXPR_, MSG_)
  8. #endif