Exemplo n.º 1
0
 public static int lua_call(LuaState state, int argCount, int resultCount)
 {
     return(LuaNativeBinding.lua_callk(state, argCount, resultCount, 0, IntPtr.Zero));
 }
Exemplo n.º 2
0
    // Load and Call Functions (Load and Run Lua Code)
    public static int lua_callk(LuaState state, int argCount, int resultCount, int ctx, LuaCFunction function)
    {
        IntPtr funcPtr = Marshal.GetFunctionPointerForDelegate(function);

        return(LuaNativeBinding.lua_callk(state, argCount, resultCount, ctx, funcPtr));
    }