[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Popping parameters (Was: String lifetime (C API))
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 2 Mar 2006 19:19:25 -0300
> So is it true that lua will automatically pop off all variables passed
> to a function when that function returns and clean up the stack?
Yes:
"Any other value in the stack below the results will be properly
discarded by Lua."
http://www.lua.org/manual/5.1/manual.html#lua_CFunction