Restored exceptionGuard functionality under CATCH_CONFIG_FAST_COMPILE

This commit is contained in:
Phil Nash
2017-08-08 21:07:30 +01:00
parent 5f91724368
commit 2832e23aa9
3 changed files with 31 additions and 7 deletions

View File

@@ -36,12 +36,15 @@ namespace Catch {
AssertionInfo m_assertionInfo;
bool m_shouldDebugBreak = false;
bool m_shouldThrow = false;
bool m_inExceptionGuard = false;
public:
AssertionHandler
( StringRef macroName,
SourceLineInfo const& lineInfo,
StringRef capturedExpression,
ResultDisposition::Flags resultDisposition );
~AssertionHandler();
void handle( ITransientExpression const& expr );
@@ -60,6 +63,8 @@ namespace Catch {
void reactWithoutDebugBreak() const;
void useActiveException( ResultDisposition::Flags resultDisposition );
void useActiveException();
void setExceptionGuard();
void unsetExceptionGuard();
};
} // namespace Catch