catch_capture.hpp doesn't need to depend on catch_interfaces_capture.h
This commit is contained in:
1 parent
fdc8a2b2df
commit
6789dfa2ba
3 files changed
+11
-5
No files matched your search
@@ -8,6 +8,7 @@
|
||||
#ifndef TWOBLUECUBES_CATCH_RUNNER_IMPL_HPP_INCLUDED
|
||||
#define TWOBLUECUBES_CATCH_RUNNER_IMPL_HPP_INCLUDED
|
||||
|
||||
#include "catch_interfaces_capture.h"
|
||||
#include "catch_interfaces_reporter.h"
|
||||
#include "catch_interfaces_exception.h"
|
||||
#include "catch_config.hpp"
|
||||
@@ -75,6 +76,9 @@ namespace Catch {
|
||||
else
|
||||
return CATCH_NULL;
|
||||
}
|
||||
AssertionResult const* getLastResult() {
|
||||
return getCurrentRunContext().getLastResult();
|
||||
}
|
||||
|
||||
class RunContext : public IRunContext {
|
||||
|
||||
@@ -223,7 +227,7 @@ namespace Catch {
|
||||
: "";
|
||||
}
|
||||
|
||||
virtual const AssertionResult* getLastResult() const CATCH_OVERRIDE {
|
||||
virtual AssertionResult const* getLastResult() const CATCH_OVERRIDE {
|
||||
return &m_lastResult;
|
||||
}
|
||||
virtual IConfig const& config() const CATCH_OVERRIDE {
|
||||
|
||||
Reference in new issue
Block a user