diff options
Diffstat (limited to 'libs/liblua/src/llimits.h')
-rw-r--r-- | libs/liblua/src/llimits.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/liblua/src/llimits.h b/libs/liblua/src/llimits.h index b86d345256..48c97f9597 100644 --- a/libs/liblua/src/llimits.h +++ b/libs/liblua/src/llimits.h @@ -84,7 +84,15 @@ typedef LUAI_UACNUMBER l_uacNumber; typedef LUAI_UACINT l_uacInt; -/* internal assertions for in-house debugging */ +/* +** Internal assertions for in-house debugging +*/ +#if defined LUAI_ASSERT +#undef NDEBUG +#include <assert.h> +#define lua_assert(c) assert(c) +#endif + #if defined(lua_assert) #define check_exp(c,e) (lua_assert(c), (e)) /* to avoid problems with conditions too long */ |