Add cdecl convention to a callback
parent
10f87aa9ce
commit
771b52e102
|
@ -14,7 +14,7 @@ namespace SharpPhysFS
|
||||||
public delegate IntPtr ReallocDelegate(IntPtr ptr, ulong size);
|
public delegate IntPtr ReallocDelegate(IntPtr ptr, ulong size);
|
||||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||||
public delegate void FreeDelegate(IntPtr ptr);
|
public delegate void FreeDelegate(IntPtr ptr);
|
||||||
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||||
public delegate void StringCallback(IntPtr data, string str);
|
public delegate void StringCallback(IntPtr data, string str);
|
||||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||||
public delegate void EnumFilesCallback(IntPtr data, string origdir, string fname);
|
public delegate void EnumFilesCallback(IntPtr data, string origdir, string fname);
|
||||||
|
|
Loading…
Reference in New Issue