Devin Jeanpierre | 64ac8ad | 2023-05-30 17:22:55 -0700 | [diff] [blame] | 1 | // Part of the Crubit project, under the Apache License v2.0 with LLVM |
| 2 | // Exceptions. See /LICENSE for license information. |
| 3 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 4 | |
Dmitri Gribenko | efc8664 | 2023-07-10 04:49:39 -0700 | [diff] [blame] | 5 | #ifndef CRUBIT_COMMON_TEST_MIDDLE_CC_LIB_H_ |
| 6 | #define CRUBIT_COMMON_TEST_MIDDLE_CC_LIB_H_ |
Devin Jeanpierre | 64ac8ad | 2023-05-30 17:22:55 -0700 | [diff] [blame] | 7 | |
| 8 | #include "common/test/bidirectional_deps/leaf_rs_lib_cc_api.h" |
| 9 | |
| 10 | #pragma clang lifetime_elision |
| 11 | |
| 12 | namespace crubit { |
| 13 | |
| 14 | inline leaf_rs_lib::LeafRsType Wrap(unsigned char x) { |
| 15 | return leaf_rs_lib::wrap(x); |
| 16 | } |
| 17 | inline unsigned char Unwrap(leaf_rs_lib::LeafRsType x) { |
| 18 | return leaf_rs_lib::unwrap(std::move(x)); |
| 19 | } |
| 20 | |
| 21 | } // namespace crubit |
| 22 | |
Dmitri Gribenko | efc8664 | 2023-07-10 04:49:39 -0700 | [diff] [blame] | 23 | #endif // CRUBIT_COMMON_TEST_MIDDLE_CC_LIB_H_ |