swig/Examples/test-suite/clientdata_prop_a.h
Seth R Johnson c9fbb81e4a 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.
2022-02-12 19:40:03 -05:00

12 lines
157 B
C++

class A {
public:
void fA() {}
};
typedef A tA;
inline void test_A(A *a) {}
inline void test_tA(tA *a) {}
inline tA *new_tA() { return new tA(); }