3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 22:03:43 +01:00

Add TRIQS_CATCH_AND_ABORT macro

modified:   triqs/utility/macros.hpp
This commit is contained in:
Michel Ferrero 2013-10-16 17:06:35 +02:00
parent f4444f3b49
commit 3de5c682f6

View File

@ -40,5 +40,7 @@ namespace triqs {
template<typename T> struct remove_cv_ref : std::remove_cv< typename std::remove_reference<T>::type> {}; template<typename T> struct remove_cv_ref : std::remove_cv< typename std::remove_reference<T>::type> {};
}; };
#define TRIQS_CATCH_AND_ABORT catch(std::exception const & e) { std::cout << e.what()<< std::endl; return 1;}
#endif #endif