lua-users home
lua-l archive

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


H all,

I wonder what is the replacement way of calling lua_pushusertag
function in Lua 5.
Currenlty, I have just updated from Lua 4 to Lua 5, 
I have C++ function, that push a pointer to an object (C++ object) to
Lua, using
lua_pushusertag with tolua.

which the line looks like this,
lua_pushusertag(L, myObjPtr, tolua_tag(L, "Object"));

I found that the tag idea is gone in Lua 5, and
I am completely confused with the lua_pushlightuserdata coz it does
not help me to associate the object pointer with "Object" tag.
(Correct me if I am wrong)

Any help would be greatly appreciated!!

Nelson