File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 18
18
19
19
#include " utest/harness.h"
20
20
#include " utest/stack_trace.h"
21
+ #include " utest/unity_handler.h"
21
22
22
23
23
- extern " C"
24
- void utest_unity_assert_failure ()
24
+ void utest_unity_assert_failure (void )
25
25
{
26
26
UTEST_LOG_FUNCTION ();
27
27
utest::v1::Harness::raise_failure (utest::v1::REASON_ASSERTION);
28
28
}
29
29
30
- extern " C"
31
- void utest_unity_ignore_failure ()
30
+ void utest_unity_ignore_failure (void )
32
31
{
33
32
UTEST_LOG_FUNCTION ();
34
33
utest::v1::Harness::raise_failure (utest::v1::failure_reason_t (utest::v1::REASON_ASSERTION | utest::v1::REASON_IGNORE));
Original file line number Diff line number Diff line change 21
21
22
22
#include <stdint.h>
23
23
24
+ #ifdef __cplusplus
25
+ extern "C" {
26
+ #endif
27
+
24
28
/// this function is called from the unity module when an assertion failed.
25
- void utest_unity_assert_failure ();
29
+ void utest_unity_assert_failure (void );
26
30
27
31
/// this function is called from the unity module when an assertion failed, but is ignored.
28
- void utest_unity_ignore_failure ();
32
+ void utest_unity_ignore_failure (void );
33
+
34
+ #ifdef __cplusplus
35
+ }
36
+ #endif
29
37
30
38
#endif // UTEST_UNITY_ASSERT_FAILURE_H
You can’t perform that action at this time.
0 commit comments