22#ifndef Root_Math_StaticCheck
23#define Root_Math_StaticCheck
27#if defined(__MAKECINT__) || defined(G__DICTIONARY)
33#define STATIC_CHECK(expr, msg) \
34 if (!(expr) ) std::cerr << "ERROR: " << #msg << std::endl; \
56#define STATIC_CHECK(expr, msg) \
57 { class ERROR_##msg {}; \
59 (void) (ROOT::Math::CompileTimeChecker<(expr) != 0> (&e)); }
67 template<
int>
struct CompileTimeError;
68 template<>
struct CompileTimeError<true> {};
82#define STATIC_CHECK(expr, msg) \
83 { ROOT::Math::CompileTimeError<((expr) != 0)> ERROR_##msg; (void)ERROR_##msg; }
Namespace for new Math classes and functions.
Namespace for new ROOT classes and functions.
CompileTimeChecker(void *)