mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-27 23:05:40 +02:00
WIP: what if we don't check when getting capture
This commit is contained in:
@@ -106,11 +106,7 @@ namespace Catch {
|
|||||||
void missingCaptureInstance();
|
void missingCaptureInstance();
|
||||||
}
|
}
|
||||||
inline IResultCapture& getResultCapture() {
|
inline IResultCapture& getResultCapture() {
|
||||||
if (auto* capture = getCurrentContext().getResultCapture()) {
|
return *getCurrentContext().getResultCapture();
|
||||||
return *capture;
|
|
||||||
} else {
|
|
||||||
Detail::missingCaptureInstance();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user