Add reference type sample case

This commit is contained in:
yamachu 2023-09-06 22:27:51 +09:00
parent 3fe9084e47
commit 8a047b31c5
2 changed files with 5 additions and 0 deletions

View File

@ -606,6 +606,8 @@ pub struct CallbackTable {
pub foobar: extern "C" fn(i: i32) -> i32,
}
pub extern "C" fn reference_type(_a: &i32, _b: &*mut i32, _c: &[u8; 16], _d: &Context) {}
// fn run_physix(){
// unsafe {
// let foundation = physx_create_foundation();

View File

@ -176,6 +176,9 @@ namespace CsBindgen
[DllImport(__DllName, EntryPoint = "call_bindgen_lz4", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void call_bindgen_lz4();
[DllImport(__DllName, EntryPoint = "reference_type", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void reference_type(int* _a, int** _b, void/* byte[] */* _c, Context* _d);
}