[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luaL_register crashed on iOS
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 17 Sep 2015 07:32:24 -0300
> The luaL_register will crash when the number of registered libs is bigger than a threshold, 43 for my test.
Each luaL_register is probably leaving a value on the Lua-C stack and so
what you're seeing is a stack overflow.
If you need to do this, you need to reserve enough space for the stack
by calling lua_checkstack or luaL_checkstack.