lua-users home
lua-l archive

Re: how to get value of a lua variable into a C program variable.

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


Thanx a lot Luiz :-)
Luv,
Ashish
--- Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
> 	lua_dostring(L, "a=2;b=a+1");
> 	lua_getglobal(L,"b");
> 	d=lua_tonumber(L,-1);
> 
> --lhf
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

AltStyle によって変換されたページ (->オリジナル) /