ErrorMacros: remove compatibility macros

This commit is contained in:
Andreas Lauser 2013-08-28 14:57:54 +02:00
parent 23f215bec4
commit c4c771e39b

View File

@ -59,11 +59,4 @@
// throw an exception if a condition is true
#define OPM_ERROR_IF(condition, message) do {if(condition){ OPM_THROW(std::runtime_error, message);}} while(false)
// compatibility macros
#define THROW(x) OPM_THROW(std::runtime_error, x)
#define ASSERT(cond) assert(cond)
#define ASSERT2(cond, x) assert(cond)
#define MESSAGE(x) OPM_MESSAGE(x)
#define MESSAGE_IF(cond, x) OPM_MESSAGE_IF(cond, x)
#endif // OPM_ERRORMACROS_HPP