mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-27 14:55: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();
|
||||
}
|
||||
inline IResultCapture& getResultCapture() {
|
||||
if (auto* capture = getCurrentContext().getResultCapture()) {
|
||||
return *capture;
|
||||
} else {
|
||||
Detail::missingCaptureInstance();
|
||||
}
|
||||
return *getCurrentContext().getResultCapture();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user