[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luaL_traceback() could consume much lua stack
- From: shankusu2017 <shankusu2017@...>
- Date: Sat, 19 Jun 2021 00:12:29 +0800
keep thinking is a beautiful thing
luaL_traceback() calls findfield(), and it's a recursion function.
The max level of findfield() is 2 now, so it could not consume too much lua stack.
Sorry for the noise.
btw, I still need to call luaL_checkstack() before luaL_traceback() to reserve enough stack space.