int ref = luaL_ref(L,LUA_REGISTRYINDEX);. // read the function from the registry and call. lua_rawgeti(L,LUA_REGISTRYINDEX,ref);. lua_pcall(L,0,0,0);.
確定! 回上一頁