Fully removed Context class

- responsibilities subsumed by RunContext
This commit is contained in:
Phil Nash
2015-11-19 18:30:03 +00:00
parent eea9357284
commit fdc8a2b2df
12 changed files with 54 additions and 163 deletions
+2 -3
View File
@@ -14,9 +14,8 @@ namespace Catch {
// Report the error condition then exit the process
inline void fatal( std::string const& message, int exitCode ) {
IContext& context = Catch::getCurrentContext();
IRunContext* runContext = context.getCurrentRunContext();
runContext->handleFatalErrorCondition( message );
IRunContext& runContext = getCurrentRunContext();
runContext.handleFatalErrorCondition( message );
if( Catch::alwaysTrue() ) // avoids "no return" warnings
exit( exitCode );