From 3de5c682f682d72300ae257d677a21468d4156d1 Mon Sep 17 00:00:00 2001 From: Michel Ferrero Date: Wed, 16 Oct 2013 17:06:35 +0200 Subject: [PATCH] Add TRIQS_CATCH_AND_ABORT macro modified: triqs/utility/macros.hpp --- triqs/utility/macros.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/triqs/utility/macros.hpp b/triqs/utility/macros.hpp index 16fceca7..f6c8e4bc 100644 --- a/triqs/utility/macros.hpp +++ b/triqs/utility/macros.hpp @@ -40,5 +40,7 @@ namespace triqs { template struct remove_cv_ref : std::remove_cv< typename std::remove_reference::type> {}; }; +#define TRIQS_CATCH_AND_ABORT catch(std::exception const & e) { std::cout << e.what()<< std::endl; return 1;} + #endif