diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2023-06-27 23:57:13 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-27 23:57:13 +0300 |
| commit | a4fb8dcc4111575c670c384e52bf1abb119879b9 (patch) | |
| tree | bdf995d017f7452d7b96f17829d022a208243aba /test cases/rust/20 rust and cpp/lib.cpp | |
| parent | 8946bc05f7f9cdd16dce3613c481a66f7835fc7f (diff) | |
| parent | 6bfb47a455af60dc975e21dd82943d5baa2bea83 (diff) | |
| download | meson-a4fb8dcc4111575c670c384e52bf1abb119879b9.tar.gz | |
Merge pull request #11902 from dcbaker/submit/rust-module-enhancements
Rust module enhancements for mesa
Diffstat (limited to 'test cases/rust/20 rust and cpp/lib.cpp')
| -rw-r--r-- | test cases/rust/20 rust and cpp/lib.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test cases/rust/20 rust and cpp/lib.cpp b/test cases/rust/20 rust and cpp/lib.cpp new file mode 100644 index 000000000..b08f870e2 --- /dev/null +++ b/test cases/rust/20 rust and cpp/lib.cpp @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright © 2023 Intel Corporation + +#include "lib.hpp" + +#include <string> + +namespace { + +uint64_t priv_length(const std::string & str) { + return str.length(); +} + +} + +extern "C" uint64_t lib_length(const char * str) { + return priv_length(str); +} |
