#ifndef __JLANG__JASSERT__ #define __JLANG__JASSERT__ /** * \author mdejong */ namespace JLANG {} namespace JPP { using namespace JLANG; } namespace JLANG { /** * Generation of compiler error. */ template struct JAssert; /** * Implementation of valid assertion. */ template struct JAssert { static const bool value = true; typedef T type; }; } #define STATIC_CHECK(expr) { JLANG::JAssert(); } #endif