#if !defined(SAGA_MACROS_HPP) #define SAGA_MACROS_HPP #include extern boost::mutex test_lock; /////////////////////////////////////////////////////////////////////////////// #define SAGA_CHECK_THROW(M, E) { \ BOOST_CHECK_THROW(M, E);} /////////////////////////////////////////////////////////////////////////////// #define SAGA_REQUIRE_THROW(M, E) { \ try { M; } \ catch(saga::exception const &e) { \ if(e.get_error() != E) { \ E = e.get_error();} \ } \ } /////////////////////////////////////////////////////////////////////////////// #define SAGA_CHECK(A) { \ boost::mutex::scoped_lock sl(test_lock); \ BOOST_CHECK(A); \ } /////////////////////////////////////////////////////////////////////////////// #define SAGA_CHECK_EQUAL(A, B) { \ boost::mutex::scoped_lock sl(test_lock); \ BOOST_CHECK_EQUAL(A, B); \ } #endif //SAGA_MACROS_HPP