diff --git a/Grid/Namespace.h b/Grid/Namespace.h index 29b229fa..c42b46b3 100644 --- a/Grid/Namespace.h +++ b/Grid/Namespace.h @@ -30,9 +30,14 @@ directory #include #include +#include #define NAMESPACE_BEGIN(A) namespace A { #define NAMESPACE_END(A) } #define GRID_NAMESPACE_BEGIN NAMESPACE_BEGIN(Grid) #define GRID_NAMESPACE_END NAMESPACE_END(Grid) #define NAMESPACE_CHECK(x) struct namespaceTEST##x {}; static_assert(std::is_same::value,"Not in :: at" ); + +#define EXCEPTION_CHECK_BEGIN(A) try { +#define EXCEPTION_CHECK_END(A) } catch ( std::exception e ) { BACKTRACEFP(stderr); std::cerr << __PRETTY_FUNCTION__ << " : " <<__LINE__<< " Caught exception "<