From 71b9532659abb531bd1597d88451426dcc895824 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Tue, 5 Jan 2021 16:48:53 +0800 Subject: update Lua. --- src/lua/lauxlib.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/lua/lauxlib.h') diff --git a/src/lua/lauxlib.h b/src/lua/lauxlib.h index 59fef6a..6571491 100644 --- a/src/lua/lauxlib.h +++ b/src/lua/lauxlib.h @@ -157,6 +157,22 @@ 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(lua_assert) + +#if defined LUAI_ASSERT + #include + #define lua_assert(c) assert(c) +#else + #define lua_assert(c) ((void)0) +#endif + +#endif + + + /* ** {====================================================== ** Generic Buffer manipulation -- cgit v1.2.3-55-g6feb