[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: does lua_pushstring check stack overflow? (Lua 5.0.2)
- From: Rici Lake <lua@...>
- Date: Mon, 28 Nov 2005 17:28:38 -0500
On 28-Nov-05, at 4:47 PM, Chris Marrin wrote:
In this case I agree with the Lua choice of speed vs. consistency. All
those API checks can take a lot of time. Of course a few more asserts
might help find the source of usage errors like this...
If you define api_check to assert, it will catch almost all of these
errors. This is highly highly recommended for debugging.
In 5.1 it is even easier to set this; just compile with
-DLUA_USE_APICHECK.