public static void lua_pcall(LuaState luaState, int argCount, int resultCount, int errFunc) { LuaNativeBinding.lua_pcallk(luaState, argCount, resultCount, errFunc, 0, IntPtr.Zero); }
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); }