aboutsummaryrefslogtreecommitdiff
path: root/src/lua/lauxlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lauxlib.h')
-rw-r--r--src/lua/lauxlib.h16
1 files changed, 16 insertions, 0 deletions
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
@@ -158,6 +158,22 @@ 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(lua_assert)
164
165#if defined LUAI_ASSERT
166 #include <assert.h>
167 #define lua_assert(c) assert(c)
168#else
169 #define lua_assert(c) ((void)0)
170#endif
171
172#endif
173
174
175
176/*
161** {====================================================== 177** {======================================================
162** Generic Buffer manipulation 178** Generic Buffer manipulation
163** ======================================================= 179** =======================================================