From 4ccabada4050a5fbbfb3b2c432d15dcfd86cf22e Mon Sep 17 00:00:00 2001 From: Snaipe Date: Sat, 5 Sep 2015 23:46:27 +0200 Subject: [PATCH] Added missing section stop symbols for MSVC --- src/report.c | 12 ++++++++++++ src/runner.c | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/report.c b/src/report.c index 2f37fa0..1658d98 100644 --- a/src/report.c +++ b/src/report.c @@ -57,6 +57,18 @@ 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)); + +f_report_hook SECTION_STOP_(HOOK_SECTION(PRE_ALL)); +f_report_hook SECTION_STOP_(HOOK_SECTION(PRE_SUITE)); +f_report_hook SECTION_STOP_(HOOK_SECTION(PRE_INIT)); +f_report_hook SECTION_STOP_(HOOK_SECTION(PRE_TEST)); +f_report_hook SECTION_STOP_(HOOK_SECTION(ASSERT)); +f_report_hook SECTION_STOP_(HOOK_SECTION(THEORY_FAIL)); +f_report_hook SECTION_STOP_(HOOK_SECTION(TEST_CRASH)); +f_report_hook SECTION_STOP_(HOOK_SECTION(POST_TEST)); +f_report_hook SECTION_STOP_(HOOK_SECTION(POST_FINI)); +f_report_hook SECTION_STOP_(HOOK_SECTION(POST_SUITE)); +f_report_hook SECTION_STOP_(HOOK_SECTION(POST_ALL)); #endif IMPL_CALL_REPORT_HOOKS(PRE_ALL); diff --git a/src/runner.c b/src/runner.c index 16b0405..2bed26a 100644 --- a/src/runner.c +++ b/src/runner.c @@ -47,6 +47,8 @@ #ifdef _MSC_VER struct criterion_test SECTION_START_(cr_tst); struct criterion_suite SECTION_START_(cr_sts); +struct criterion_test SECTION_STOP_(cr_tst); +struct criterion_suite SECTION_STOP_(cr_sts); #endif IMPL_SECTION_LIMITS(struct criterion_test, cr_tst);