[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How is string passed from Lua to C
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 7 Dec 2011 10:43:06 -0200
> So in case of string, is the C stack able to access the Lua address
> space where I have stored the string?
Yes. lua_tostring gives you that address. Use it freely while the string
is in the Lua/C stack. Just don't save that address for later unless
you're positive that the string won't be collected.