aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lauxlib.h12
-rw-r--r--lualib.h6
2 files changed, 12 insertions, 6 deletions
diff --git a/lauxlib.h b/lauxlib.h
index 59fef6af..df3de4f8 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -158,6 +158,18 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
158 158
159 159
160/* 160/*
161** Internal assertions for in-house debugging
162*/
163#if defined LUAI_ASSERT
164#include <assert.h>
165#define lua_assert(c) assert(c)
166#else
167#define lua_assert(x) ((void)0)
168#endif
169
170
171
172/*
161** {====================================================== 173** {======================================================
162** Generic Buffer manipulation 174** Generic Buffer manipulation
163** ======================================================= 175** =======================================================
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);
49LUALIB_API void (luaL_openlibs) (lua_State *L); 49LUALIB_API void (luaL_openlibs) (lua_State *L);
50 50
51 51
52
53#if !defined(lua_assert)
54#define lua_assert(x) ((void)0)
55#endif
56
57
58#endif 52#endif