[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to find out current stack size?
- From: Taj Khattra <taj.khattra@...>
- Date: Sun, 23 Nov 2003 15:11:40 -0800
On Sun, Nov 23, 2003 at 03:15:50PM +0100, gradha29oct@ya.com wrote:
> However, I have not seen anything in the Lua reference manual
> as to check the current stack size. The closest email I've found
> in the archives is http://lua-users.org/lists/lua-l/2002-
> 09/msg00163.html, but that doesn't really help me with stack
> overflow checks.
it's instructive to read the entire thread starting at that message:
it mentions lua_checkstack() and luaL_checkstack(). also see section
3.2 (The Stack and Indices) in the reference manual.
-taj