diff options
Diffstat (limited to 'bindgen-integration/cpp')
-rw-r--r-- | bindgen-integration/cpp/Test.cc | 15 | ||||
-rw-r--r-- | bindgen-integration/cpp/Test.h | 10 |
2 files changed, 25 insertions, 0 deletions
diff --git a/bindgen-integration/cpp/Test.cc b/bindgen-integration/cpp/Test.cc new file mode 100644 index 00000000..d9c13a76 --- /dev/null +++ b/bindgen-integration/cpp/Test.cc @@ -0,0 +1,15 @@ +#include "Test.h" + +const char* Test::name() { + return "Test"; +} + +Test::Test(int foo) + : m_int(foo) + , m_double(0.0) +{} + +Test::Test(double foo) + : m_int(0) + , m_double(foo) +{} diff --git a/bindgen-integration/cpp/Test.h b/bindgen-integration/cpp/Test.h new file mode 100644 index 00000000..2e15bb49 --- /dev/null +++ b/bindgen-integration/cpp/Test.h @@ -0,0 +1,10 @@ +#pragma once + +class Test final { + int m_int; + double m_double; +public: + static const char* name(); + Test(int foo); + Test(double foo); +}; |