[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Multiple luaL_loadfile()/lua_pcall() and persistance
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 23 Jul 2018 10:17:29 -0300
> > eventually collected, provided you removed
> > from the stack the result from
> > 'luaL_loadfile()' after calling
> > 'lua_pcall()'.
>
> Do I have to remove anything from the stack ?
> As per the manual (https://www.lua.org/manual/5.1/manual.html#lua_pcall), "lua_pcall always removes the function and its arguments from the stack"
> So I guessed everything is cleaned up, no ?
Sure; my bad.
-- Roberto