Jpp  17.3.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JAssert.hh
Go to the documentation of this file.
1 #ifndef __JLANG__JASSERT__
2 #define __JLANG__JASSERT__
3 
4 /**
5  * \author mdejong
6  */
7 
8 namespace JLANG {}
9 namespace JPP { using namespace JLANG; }
10 
11 namespace JLANG {
12 
13  /**
14  * Generation of compiler error.
15  */
16  template<bool, class T = void>
17  struct JAssert;
18 
19  /**
20  * Implementation of valid assertion.
21  */
22  template<class T>
23  struct JAssert<true, T>
24  {
25  static const bool value = true;
26 
27  typedef T type;
28  };
29 }
30 
31 #define STATIC_CHECK(expr) { JLANG::JAssert<expr>(); }
32 
33 #endif
Generation of compiler error.
Definition: JAssert.hh:17
do set_variable OUTPUT_DIRECTORY $WORKDIR T