[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Getting the address of Lua variables in C
- From: Jose Marin <jose_marin2@...>
- Date: Fri, 7 May 2004 13:57:48 -0300 (ART)
Yes, this is the common way of do this.
But I woul like to know if is possible to get the
memory address of a variable, to speed it's updating.
>
> I assume that GetTime() returns a number (integer or
> float). Then you change
> global variable "time" that way:
>
> lua_pushnumber(L, GetTime());
> lua_setglobal(L, "time");
>
______________________________________________________________________
Yahoo! Messenger - Fale com seus amigos online. Instale agora!
http://br.download.yahoo.com/messenger/