public void LuaPushFunction(LuaCSFunction func) { IntPtr fn = Marshal.GetFunctionPointerForDelegate(func); LuaDLL.lua_pushcclosure(L, fn, 0); }