Added MSVC glue for missing section symbols
This commit is contained in:
parent
8871ae946b
commit
030fc1de19
2 changed files with 19 additions and 0 deletions
14
src/report.c
14
src/report.c
|
@ -45,6 +45,20 @@ static inline void nothing() {}
|
|||
} \
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
f_report_hook SECTION_START_(HOOK_SECTION(PRE_ALL));
|
||||
f_report_hook SECTION_START_(HOOK_SECTION(PRE_SUITE));
|
||||
f_report_hook SECTION_START_(HOOK_SECTION(PRE_INIT));
|
||||
f_report_hook SECTION_START_(HOOK_SECTION(PRE_TEST));
|
||||
f_report_hook SECTION_START_(HOOK_SECTION(ASSERT));
|
||||
f_report_hook SECTION_START_(HOOK_SECTION(THEORY_FAIL));
|
||||
f_report_hook SECTION_START_(HOOK_SECTION(TEST_CRASH));
|
||||
f_report_hook SECTION_START_(HOOK_SECTION(POST_TEST));
|
||||
f_report_hook SECTION_START_(HOOK_SECTION(POST_FINI));
|
||||
f_report_hook SECTION_START_(HOOK_SECTION(POST_SUITE));
|
||||
f_report_hook SECTION_START_(HOOK_SECTION(POST_ALL));
|
||||
#endif
|
||||
|
||||
IMPL_CALL_REPORT_HOOKS(PRE_ALL);
|
||||
IMPL_CALL_REPORT_HOOKS(PRE_SUITE);
|
||||
IMPL_CALL_REPORT_HOOKS(PRE_INIT);
|
||||
|
|
|
@ -44,6 +44,11 @@
|
|||
#include "extmatch.h"
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
struct criterion_test SECTION_START_(cr_tst);
|
||||
struct criterion_suite SECTION_START_(cr_sts);
|
||||
#endif
|
||||
|
||||
IMPL_SECTION_LIMITS(struct criterion_test, cr_tst);
|
||||
IMPL_SECTION_LIMITS(struct criterion_suite, cr_sts);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue