use UnmanagedCallersOnly for delegates

This commit is contained in:
Emmanuel Hansen
2025-02-22 22:46:29 -06:00
committed by KeatonTheBot
parent 1ea90c41a9
commit 7bf6c3f016
13 changed files with 648 additions and 665 deletions
@@ -97,7 +97,7 @@ namespace ARMeilleure.Translation
public virtual Operand Call(MethodInfo info, params Operand[] callArgs)
{
IntPtr funcPtr = Delegates.GetDelegateFuncPtr(info);
IntPtr funcPtr = info.MethodHandle.GetFunctionPointer();
OperandType returnType = GetOperandType(info.ReturnType);