Added new module for cpp compatibility

This commit is contained in:
2024-09-19 13:44:05 +03:00
parent be75ef03cb
commit 49403e70fd
10 changed files with 393 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
using System.Runtime.InteropServices;
namespace CppCompatibilityModule.Extern;
public static class Delegates
{
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void ProcessObject(ref object obj);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void ExecuteDelegateFunction();
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void SetExternFunctionPointerDelegate(IntPtr funcPtr);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void CsharpFunctionDelegate();
}