lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



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.