blob: 988bf9f2c884fd03371e0ad2542c39ba303c445e [file]
// 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
// Automatically @generated Rust bindings for the following C++ target:
// //rs_bindings_from_cc/test/annotations:rust_name
// Features: infer_operator_lifetimes, supported
#include "support/internal/cxx20_backports.h"
#include "support/internal/offsetof.h"
#include "support/internal/sizeof.h"
#include <cstddef>
#include <memory>
// Public headers of the C++ library being wrapped.
#include "rs_bindings_from_cc/test/annotations/rust_name.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wthread-safety-analysis"
extern "C" void __rust_thunk___ZN6crubit4test13FreeFnOldNameEv() {
crubit::test::FreeFnOldName();
}
static_assert((void (*)())&crubit::test::FreeFnOldName);
static_assert(sizeof(struct crubit::test::StructOldName) == 1);
static_assert(alignof(struct crubit::test::StructOldName) == 1);
extern "C" void __rust_thunk___ZN6crubit4test13StructOldNameC1Ev(
struct crubit::test::StructOldName* __this) {
crubit::construct_at(__this);
}
static_assert(CRUBIT_SIZEOF(struct crubit::test::SomeStruct) == 4);
static_assert(alignof(struct crubit::test::SomeStruct) == 4);
static_assert(CRUBIT_OFFSET_OF(field_old_name,
struct crubit::test::SomeStruct) == 0);
extern "C" void __rust_thunk___ZN6crubit4test10SomeStructC1Ev(
struct crubit::test::SomeStruct* __this) {
crubit::construct_at(__this);
}
extern "C" void __rust_thunk___ZN6crubit4test10SomeStructC1Eiii(
struct crubit::test::SomeStruct* __this, int a, int b, int c) {
crubit::construct_at(__this, a, b, c);
}
extern "C" void __rust_thunk___ZNK6crubit4test10SomeStruct13MethodOldNameEv(
struct crubit::test::SomeStruct const* __this) {
__this->MethodOldName();
}
static_assert((void (::crubit::test::SomeStruct::*)() const) &
crubit::test::SomeStruct::MethodOldName);
#pragma clang diagnostic pop