lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mark Hamburg:
>Where did the table come from?

I use lua_pushtable(L, *p->data); in callback functions 
instead of:
lua_pushlightuserdata(L, control);
lua_rawget(L, LUA_REGISTRYINDEX);
[[
lua_pushlightuserdata(L, p->win);
lua_rawget(L, -2);
]]

Some objects stored in registry, others in subtable ([[...]
]).