diff --git a/lauxlib.h b/lauxlib.h index 59fef6af..df3de4f8 100644 --- a/lauxlib.h +++ b/lauxlib.h @@ -157,6 +157,18 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname, #define luaL_pushfail(L) lua_pushnil(L) +/* +** Internal assertions for in-house debugging +*/ +#if defined LUAI_ASSERT +#include +#define lua_assert(c) assert(c) +#else +#define lua_assert(x) ((void)0) +#endif + + + /* ** {====================================================== ** Generic Buffer manipulation diff --git a/lualib.h b/lualib.h index eb08b530..26255290 100644 --- a/lualib.h +++ b/lualib.h @@ -49,10 +49,4 @@ LUAMOD_API int (luaopen_package) (lua_State *L); LUALIB_API void (luaL_openlibs) (lua_State *L); - -#if !defined(lua_assert) -#define lua_assert(x) ((void)0) -#endif - - #endif