[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Replacment of lua_pushusertag in Lua 5
- From: Nelson Wong <gogoneruson@...>
- Date: Tue, 12 Apr 2005 18:26:50 +0900
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_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!!