Exemplo n.º 1
0
 public static void lua_pcall(LuaState luaState, int argCount, int resultCount, int errFunc)
 {
     LuaNativeBinding.lua_pcallk(luaState, argCount, resultCount, errFunc, 0, IntPtr.Zero);
 }
Exemplo n.º 2
0
    public static void lua_pcallk(LuaState state, int argCount, int resultCount, int errFunc, int ctx, LuaCFunction function)
    {
        IntPtr funcPtr = Marshal.GetFunctionPointerForDelegate(function);

        LuaNativeBinding.lua_pcallk(state, argCount, resultCount, errFunc, ctx, funcPtr);
    }