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