Commit fcc4f421 authored by Martin Marinov's avatar Martin Marinov
Browse files

Added DEB_throw_outcome_if()

[git-p4: depot-paths = "//ReForm/ReForm/main/Base/": change = 12977]
parent 2ca134c2
......@@ -20,8 +20,15 @@
// proper would enable a breakpoint in the Outcome constructor being
// exercised by the THROW.
#define THROW_OUTCOME(ERROR_INDEX) { throw ReForm::Outcome::ERROR_INDEX; }
#define THROW_OUTCOME_if(COND, ERROR_INDEX) if (COND) THROW_OUTCOME(ERROR_INDEX)
#define THROW_OUTCOME_if(COND, ERROR_INDEX) \
{ if (COND) THROW_OUTCOME(ERROR_INDEX); }
#define DEB_throw_outcome_if(COND, ERROR_MSG) \
{ if (COND) { DEB_error(ERROR_MSG); THROW_OUTCOME(TODO); } }
#define CATCH_OUTCOME(OC) catch (ReForm::Outcome::ErrorIndex& OC)
#define RETHROW_OUTCOME(EXPR) (EXPR).rethrow()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment