Exemplo n.º 1
0
        public static IntPtr ToFunctionPointer(this LuaKFunction d)
        {
            if (d == null)
            {
                return(IntPtr.Zero);
            }

            return(Marshal.GetFunctionPointerForDelegate <LuaKFunction>(d));
        }
Exemplo n.º 2
0
        public static IntPtr ToFunctionPointer(this LuaKFunction d)
        {
            if (d == null)
            {
                return(IntPtr.Zero);
            }

#if NETFRAMEWORK
            return(Marshal.GetFunctionPointerForDelegate(d));
#else
            return(Marshal.GetFunctionPointerForDelegate <LuaKFunction>(d));
#endif
        }
Exemplo n.º 3
0
 /// <summary>
 /// Call in protected mode with yield support
 /// </summary>
 public LuaStatus PCallK(int nargs, int nresults, int errfunc, int ctx, LuaKFunction k)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Yields a coroutine (thread). 
 /// </summary>
 public LuaStatus YieldK(int nresults, int ctx, LuaKFunction k)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 5
0
 public int LuaYieldK(int nresults, IntPtr ctx, LuaKFunction k)
 {
     return(LuaDLL.lua_yieldk(L, nresults, ctx, k));
 }
Exemplo n.º 6
0
 public void LuaPCallK(int nArgs, int nResults, int errfunc, IntPtr ctx, LuaKFunction k)
 {
     LuaDLL.lua_pcallk(L, nArgs, nResults, errfunc, ctx, k);
 }
Exemplo n.º 7
0
 public void LuaCallK(int nArgs, int nResults, IntPtr ctx, LuaKFunction k)
 {
     LuaDLL.lua_callk(L, nArgs, nResults, ctx, k);
 }