luaL_ref :存放函数到注册表中并返回引用. lua_rawgeti:从注册表中读取该函数并调用 ... fun_ref = luaL_ref(L,LUA_REGISTRYINDEX);//注册函数.
確定! 回上一頁