29 #ifndef Utils_ExceptHandlers_HeaderFile
30 #define Utils_ExceptHandlers_HeaderFile
36 typedef void (*
PVF)();
43 { old = std::set_unexpected(f); }
47 { old = ::set_unexpected(f); }
48 ~
Unexpect() { ::set_unexpected(old); }
58 { old = std::set_terminate(f); }
62 { old = ::set_terminate(f); }
67 #define UNEXPECT_CATCH(FuncName, ExceptionConstructor) \
68 inline void FuncName () {\
69 throw ExceptionConstructor (); \