Jpp
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>
17  struct JAssert;
18 
19  /**
20  * Implementation of valid assertion.
21  */
22  template<>
23  struct JAssert<true>
24  {
25  static const bool value = true;
26  };
27 }
28 
29 #define STATIC_CHECK(expr) { JLANG::JAssert<expr>(); }
30 
31 #endif
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
JLANG
Auxiliary classes and methods for language specific functionality.
Definition: JAbstractClass.hh:10
JLANG::JAssert
Generation of compiler error.
Definition: JAssert.hh:17