Skip to content

Commit a8e799b

Browse files
committed
Fix fixture using from C++ sources
Mangling issues, as always.
1 parent dce6d32 commit a8e799b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

extras/fixture/src/unity_fixture_internals.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
#ifndef UNITY_FIXTURE_INTERNALS_H_
99
#define UNITY_FIXTURE_INTERNALS_H_
1010

11+
#ifdef __cplusplus
12+
extern "C"
13+
{
14+
#endif
15+
1116
struct _UnityFixture
1217
{
1318
int Verbose;
@@ -36,4 +41,8 @@ void UnityPointer_Set(void** ptr, void* newValue, UNITY_LINE_TYPE line);
3641
void UnityPointer_UndoAllSets(void);
3742
void UnityPointer_Init(void);
3843

44+
#ifdef __cplusplus
45+
}
46+
#endif
47+
3948
#endif /* UNITY_FIXTURE_INTERNALS_H_ */

0 commit comments

Comments
 (0)