We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents7f81b38 +580f13f commit46d56afCopy full SHA for 46d56af
src/runtime/nativecall.cs
@@ -27,9 +27,6 @@ internal class NativeCall
27
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
28
privatedelegatevoidVoid_1_Delegate(IntPtra1);
29
30
-[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
31
-privatedelegateIntPtrIntPtr_3_Delegate(IntPtra1,IntPtra2,IntPtra3);
32
-
33
34
privatedelegateintInt_3_Delegate(IntPtra1,IntPtra2,IntPtra3);
35
@@ -40,7 +37,8 @@ public static void Void_Call_1(IntPtr fp, IntPtr a1)
40
37
41
38
publicstaticIntPtrCall_3(IntPtrfp,IntPtra1,IntPtra2,IntPtra3)
42
39
{
43
-return((IntPtr_3_Delegate)Marshal.GetDelegateForFunctionPointer(fp,typeof(IntPtr_3_Delegate)))(a1,a2,a3);
+vard=(Interop.TernaryFunc)Marshal.GetDelegateForFunctionPointer(fp,typeof(Interop.TernaryFunc));
+returnd(a1,a2,a3);
44
}
45
46