Example #1
0
        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);
        }
Example #2
0
        public static void JS_SetInterruptHandler(JSRuntime rt, JSInterruptHandler cb, IntPtr opaque)
        {
            var fn = Marshal.GetFunctionPointerForDelegate(cb);

            JS_SetInterruptHandler(rt, fn, opaque);
        }