Skip to content

Commit c9fbb81

Browse files
committed
Mark in-header function definitions as "inline"
Otherwise, generating the `clientdata_prop` modules will duplicate symbols, leading to linker errors if the resulting modules are linked (or possibly loaded) simultaneously.
1 parent a8e73e3 commit c9fbb81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Examples/test-suite/clientdata_prop_a.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class A {
66

77
typedef A tA;
88

9-
void test_A(A *a) {}
10-
void test_tA(tA *a) {}
9+
inline void test_A(A *a) {}
10+
inline void test_tA(tA *a) {}
1111

12-
tA *new_tA() { return new tA(); }
12+
inline tA *new_tA() { return new tA(); }

0 commit comments

Comments
 (0)