1 #ifndef UNITTEST_REPORTASSERTIMPL_H
2 #define UNITTEST_REPORTASSERTIMPL_H
5 #include "HelperMacros.h"
7 #ifdef UNITTEST_NO_EXCEPTIONS
18 UNITTEST_LINKAGE
void ExpectAssert(
bool expected);
20 UNITTEST_LINKAGE
void ReportAssertEx(TestResults* testResults,
21 const TestDetails* testDetails,
22 char const* description,
26 UNITTEST_LINKAGE
bool AssertExpected();
28 #ifdef UNITTEST_NO_EXCEPTIONS
29 UNITTEST_LINKAGE UNITTEST_JMPBUF* GetAssertJmpBuf();
32 #define UNITTEST_SET_ASSERT_JUMP_TARGET() \
33 __pragma(warning(push)) __pragma(warning(disable:4611)) \
34 UNITTEST_SETJMP(*UnitTest::Detail::GetAssertJmpBuf()) \
35 __pragma(warning(pop))
37 #define UNITTEST_SET_ASSERT_JUMP_TARGET() UNITTEST_SETJMP(*UnitTest::Detail::GetAssertJmpBuf())
40 #define UNITTEST_JUMP_TO_ASSERT_JUMP_TARGET() UNITTEST_LONGJMP(*UnitTest::Detail::GetAssertJmpBuf(), 1)