blob: 27b4a9363fea0135f1a5fc21107632bd41bd46d8 [file] [log] [blame]
Devin Jeanpierre64ac8ad2023-05-30 17:22:55 -07001// 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 Gribenkoefc86642023-07-10 04:49:39 -07005#ifndef CRUBIT_COMMON_TEST_MIDDLE_CC_LIB_H_
6#define CRUBIT_COMMON_TEST_MIDDLE_CC_LIB_H_
Devin Jeanpierre64ac8ad2023-05-30 17:22:55 -07007
8#include "common/test/bidirectional_deps/leaf_rs_lib_cc_api.h"
9
10#pragma clang lifetime_elision
11
12namespace crubit {
13
14inline leaf_rs_lib::LeafRsType Wrap(unsigned char x) {
15 return leaf_rs_lib::wrap(x);
16}
17inline unsigned char Unwrap(leaf_rs_lib::LeafRsType x) {
18 return leaf_rs_lib::unwrap(std::move(x));
19}
20
21} // namespace crubit
22
Dmitri Gribenkoefc86642023-07-10 04:49:39 -070023#endif // CRUBIT_COMMON_TEST_MIDDLE_CC_LIB_H_