raze-gles/tools/re2c/src/util/static_assert.h
Christoph Oelckers 8c95516224 - added compile tools from GZDoom repo:
- updaterevision for automated revision string generation
- re2c as a prerequisite to use sc_man in the future
- zipdir to automatically generate an engine resource file.
2019-09-22 08:52:30 +02:00

14 lines
307 B
C++

#ifndef _RE2C_UTIL_STATIC_ASSERT_
#define _RE2C_UTIL_STATIC_ASSERT_
namespace re2c {
template<bool> struct static_assert_t;
template<> struct static_assert_t<true> {};
} // namespace re2c
#define RE2C_STATIC_ASSERT(e) \
{ re2c::static_assert_t<e> _; (void) _; }
#endif // _RE2C_UTIL_STATIC_ASSERT_