diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2023-10-16 10:00:52 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-02-23 09:48:32 -0800 |
| commit | 6a8330af598753d5982a37933beeac2d6b565386 (patch) | |
| tree | 8d1ffe03bc0b110f4f6e0389bfd4c73c051523f4 /test cases/rust/12 bindgen/src/impl.cpp | |
| parent | 2c7833b1c9e77d244bdbfc2b96422854f36fc68c (diff) | |
| download | meson-6a8330af598753d5982a37933beeac2d6b565386.tar.gz | |
rust/bindgen: Use Meson rules for C++ headers
Bindgen natively only considers .hpp to be C++ headers, but Meson
considers some additional extensions including .hh and .hxx to be C++.
Diffstat (limited to 'test cases/rust/12 bindgen/src/impl.cpp')
| -rw-r--r-- | test cases/rust/12 bindgen/src/impl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test cases/rust/12 bindgen/src/impl.cpp b/test cases/rust/12 bindgen/src/impl.cpp new file mode 100644 index 000000000..39c8f2ebe --- /dev/null +++ b/test cases/rust/12 bindgen/src/impl.cpp @@ -0,0 +1,7 @@ +#include "header.hpp" + +MyClass::MyClass() : val{7} {}; + +int MyClass::method() const { + return val; +} |
