Open
Description
Input C/C++ Header
class TestClass {
public:
virtual void method() = 0;
};
Bindgen Invocation
$ bindgen input.h --vtable-generation --disable-name-namespacing header.h -- -x c++
Actual Results
#[repr(C)]
pub struct TestClass__bindgen_vtable {
pub TestClass_method: unsafe extern "C" fn(this: *mut TestClass),
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TestClass {
pub vtable_: *const TestClass__bindgen_vtable,
}
Expected Results
The TestClass
prefix for TestClass_method
should be removed.