[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Linking C variables and lua variables.
- From: Juergen Fuhrmann <fuhrmann@...>
- Date: Tue, 01 Aug 2000 14:17:22 +0200
Hi,
I am using lua that way, and it is fairly easy to code. For a
Lua_LinkVar routine, you need to store the address of the variable as
userdata and use setglobal/getglobal tag methods to write to that
address. These need type information, perhaps you can store that in a
table. E.g. for a global variable x, typeinfo.x would contain the
type information. Please ask if you need to know more.
Juergen