8 lines
285 B
C#
8 lines
285 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SDL3_TestingSuite.SDL3;
|
|
|
|
public unsafe static class DelegateHelpers
|
|
{
|
|
public static void* GetPtrForDelegate<TDelegate>(this TDelegate _delegate) where TDelegate : notnull => (void*)Marshal.GetFunctionPointerForDelegate(_delegate);
|
|
} |