| // Part of the Crubit project, under the Apache License v2.0 with LLVM | |
| // Exceptions. See /LICENSE for license information. | |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| #ifndef CRUBIT_COMMON_TEST_MIDDLE_CC_LIB_H_ | |
| #define CRUBIT_COMMON_TEST_MIDDLE_CC_LIB_H_ | |
| #include <utility> | |
| #include "common/test/bidirectional_deps/leaf_rs_lib.h" | |
| #pragma clang lifetime_elision | |
| namespace crubit { | |
| inline leaf_rs_lib::LeafRsType Wrap(unsigned char x) { | |
| return leaf_rs_lib::wrap(x); | |
| } | |
| inline unsigned char Unwrap(leaf_rs_lib::LeafRsType x) { | |
| return leaf_rs_lib::unwrap(std::move(x)); | |
| } | |
| inline leaf_rs_lib::LeafRsEnum WrapEnum(unsigned char x) { | |
| return leaf_rs_lib::wrap_enum(x); | |
| } | |
| inline unsigned char UnwrapEnum(leaf_rs_lib::LeafRsEnum x) { | |
| return leaf_rs_lib::unwrap_enum(std::move(x)); | |
| } | |
| } // namespace crubit | |
| using LeafRsTypeAlias2 = leaf_rs_lib::LeafRsTypeAlias; | |
| #endif // CRUBIT_COMMON_TEST_MIDDLE_CC_LIB_H_ |