[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua stack problem.
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 13 Jun 2011 17:34:22 -0300
> It's a bit strange that lua would not take appropriate measure to
> enlarge the stack automatically. Silently stumping data is even more
The C API does not hold hands. It assumes you know what you're doing,
just like the standard C library, which never tests pointers for NULL
The manual says:
As in most C libraries, the Lua API functions do not check their
arguments for validity or consistency. However, you can change this
behavior by compiling Lua with a proper definition for the macro
luai_apicheck, in file luaconf.h.