[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LUA <--> C++ question
- From: erik@... (Erik Hougaard)
- Date: Wed, 15 Mar 2000 17:03:45 +0100
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!
/Erik