0.5
Fix issue #2:
Use
lua_pushvalue( ls, -1);
int hnd = luaL_ref( ls, LUA_REGISTRYINDEX);
and
lua_rawgeti( ls, LUA_REGISTRYINDEX, hnd);
instead of Lua table with custom counters as keys for object references stored as integers in the C++ structures of Mewa.