lua-users home
lua-l archive

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


On Wed, Feb 29, 2012 at 11:31 AM, Patrick Rapin <toupie300@gmail.com> wrote:
> Like Roberto, I don't believe that bug report.
> I double checked, and Lua sources does not have any compilation
> directives based on "DEBUG", "_DEBUG" nor "NDEBUG".
> And "assert" C macro is only used when LUA_USE_APICHECK is defined
> (which is not by default).

Josh, have you wrapped some of your C calls in assert()?

   assert(register_hooks(L)); /* register_hooks won't be called if
NDEBUG is defined */

It sounds like you aren't registering the hooks in release mode.

Cheers,
Sam