lua-users home
lua-l archive

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


> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
> Behalf Of Dirk Laurie
> Sent: donderdag 2 juli 2015 9:09
> To: Lua mailing list
> Subject: Re: How to "ask for" and "pass" values between Lua and C?
> 
> 2015-07-02 8:53 GMT+02:00 Nan Xiao <xiaonan830818@gmail.com>:
> 
> > I am very confused about the above words, and there is no example to
> explain
> > how to "ask for" and "pass" values between C and Lua.
> >
> > Could anyone can give some examples or explain it a bit detailedly? Thanks
> > very much in advance!
> 
> I could try to give a small example, but really in the long run there is no
> substitute for reading "Programming in Lua". <http://www.lua.org/pil>

The online version is for Lua version 5.0, so you probably should buy a more recent version. But still the C api section should answer your questions regarding the stack.
See http://www.lua.org/pil/24.html 

Thijs