public static void JS_SetInterruptHandler(JSRuntime rt, JSInterruptHandler cb, IntPtr opaque) { #if JSB_UNITYLESS GCHandle.Alloc(cb); #endif var fn = Marshal.GetFunctionPointerForDelegate(cb); JS_SetInterruptHandler(rt, fn, opaque); }
public static void JS_SetInterruptHandler(JSRuntime rt, JSInterruptHandler cb, IntPtr opaque) { var fn = Marshal.GetFunctionPointerForDelegate(cb); JS_SetInterruptHandler(rt, fn, opaque); }