lua-users home
lua-l archive

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

Christophe Gimenez wrote:
> As I said in a previous message (and I am really sorry for that) I still have NO IDEA of what "tags" are ?

How to Tag

1. Create a global variable in your c/c++ program called MyObjectTag
2. Assign that with "MyObjectTag = lua_newtag()"
3. When pushing use "lua_pushusertag(pointer,MyObjectTag)"
4. When using test the lua_Object with "lua_tag(Object) == MyObjectTag"
to see if thats equal to MyObjectTag.

Thats it!