Commit 2b28e03b authored by Ian Bell's avatar Ian Bell
Browse files

OUTCOMES. Moved file outcomeUtils.hh and added it to Cmake Project. Added...

OUTCOMES. Moved file outcomeUtils.hh and added it to Cmake Project. Added CATCH_OUTCOME macro mathcing existing THROW_OUTCOME macro.Added missing exception handling to TriToQuadMesh() taking MeshArrays.Added some DEB_out to Outcome code.

[git-p4: depot-paths = "//ReForm/ReForm/main/Base/": change = 10449]
parent 86b6d2bd
......@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.0)
project(Base)
my_add_subdir(Debug)
my_add_subdir(Utils)
include_directories(${PROJECT_SOURCE_DIR}/..)
......
set(my_headers
${CMAKE_CURRENT_SOURCE_DIR}/OutcomeUtils.hh
PARENT_SCOPE
)
set(my_sources
PARENT_SCOPE
)
......@@ -12,7 +12,15 @@
#define REFORM_OUTCOMEUTILS_HH_INCLUDED
#include <ReForm/Base/Outcome.hh>
#include <Base/Debug/DebOut.hh>
// We are throwing Outcome::ErrorIndex for now. Throwing an enum is distinct
// from throwing an int so we should be safe here, but throwing an Outcome
// proper would enable a breakpoint in the Outcome constructor being
// excercised by the THROW.
#define THROW_OUTCOME(ERROR_INDEX) { throw ReForm::Outcome::ERROR_INDEX; }
#define CATCH_OUTCOME(OC) catch (ReForm::Outcome::ErrorIndex& OC)
#endif//REFORM_OUTCOMEUTILS_HH_INCLUDED
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