forked from catchorg/Catch2
Fully removed Context class
- responsibilities subsumed by RunContext
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user