Jpp  master_rocky-37-gf0c5bc59d
the software that should make you happy
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
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Generation of compiler error.
Definition: JAssert.hh:17