aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lauxlib.h')
-rw-r--r--lauxlib.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/lauxlib.h b/lauxlib.h
index df3de4f8..65714911 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -160,11 +160,15 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
160/* 160/*
161** Internal assertions for in-house debugging 161** Internal assertions for in-house debugging
162*/ 162*/
163#if !defined(lua_assert)
164
163#if defined LUAI_ASSERT 165#if defined LUAI_ASSERT
164#include <assert.h> 166 #include <assert.h>
165#define lua_assert(c) assert(c) 167 #define lua_assert(c) assert(c)
166#else 168#else
167#define lua_assert(x) ((void)0) 169 #define lua_assert(c) ((void)0)
170#endif
171
168#endif 172#endif
169 173
170 174