[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Getting the address of Lua variables in C
- From: Jose Marin <jose_marin2@...>
- Date: Fri, 7 May 2004 11:48:36 -0300 (ART)
Hello.
It's possible to get the address of Lua variable to be
used in C?
I would like to do this in C:
int *p_time;
p_time = (int*)LuaGetVarAddress("time");
and, for every game frame:
*p_time = GetTime();
I don't wanna get the reference to "time" on every
game frame.
Maybe LuaGetVarAddress returns a void*.
It's that possible?
______________________________________________________________________
Yahoo! Messenger - Fale com seus amigos online. Instale agora!
http://br.download.yahoo.com/messenger/