Use luaL_ref references instead of custom hashtable for objects stored in C++ data structures of Mewa #2. Check if int r = luaL_ref(L, LUA_REGISTRYINDEX);.
確定! 回上一頁