lua-users home
lua-l archive

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

> -----Original Message-----
> From: [] 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 <>:
> > 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". <>

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.