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.
This commit is contained in:
Seth R Johnson 2022-02-12 18:09:32 -05:00
parent a8e73e3ad7
commit c9fbb81e4a
1 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ class A {
typedef A tA;
void test_A(A *a) {}
void test_tA(tA *a) {}
inline void test_A(A *a) {}
inline void test_tA(tA *a) {}
tA *new_tA() { return new tA(); }
inline tA *new_tA() { return new tA(); }