Re: is it possible to set a minimum size for the stack of a lua_State?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: is it possible to set a minimum size for the stack of a lua_State?
- From: Rici Lake <lua@...>
- Date: 2007年1月14日 00:11:40 -0500
On 13-Jan-07, at 5:39 PM, Graham Wakefield wrote:
Duh sorry - I see that lua_checkstack() returns false on error, not an
error code.
Still - can I be sure that gc() won't shrink the stack back down again?
Yes, at least until you return from the stack frame in which you call
lua_checkstack.
If I recall correctly, Lua is pretty conservative about shrinking the
stack. Have you actually experienced problems with multiple
reallocations?