luaL_ref 把棧頂的值取出,放到指定的tabel中,然後返回一個索引(目測是數組的index)。 ... static int setnotify(lua_State *L) { lua_callback = luaL_ref(L, ...
確定! 回上一頁