mirror of
https://github.com/Sarsoo/csbindgen.git
synced 2024-12-22 22:46:26 +00:00
Add reference type sample case
This commit is contained in:
parent
3fe9084e47
commit
8a047b31c5
2
csbindgen-tests/src/lib.rs
vendored
2
csbindgen-tests/src/lib.rs
vendored
@ -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();
|
||||
|
3
dotnet-sandbox/NativeMethods.cs
vendored
3
dotnet-sandbox/NativeMethods.cs
vendored
@ -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);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user