lua-users home
lua-l archive

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


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/