viable-impl 0.2.1

Interop with C++ MSVC VTables through Rust! If this hasn't been used for a while, you can message me for the name.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Attributes
use std::os::raw::c_int;
use viable::vtable;

#[vtable]
pub(crate) struct Bar {
	#[offset(1)]
	pub(crate) first: extern "C" fn() -> c_int,

	#[skip(1)]
	#[check(3)]
	/// Doc
	/// Comments
	pub(crate) third: extern "C" fn(i: c_int),
}

pub fn main() {}