|
@@ -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 <assert.h>
|
|
|
+#define lua_assert(c) assert(c)
|
|
|
+#else
|
|
|
+#define lua_assert(x) ((void)0)
|
|
|
+#endif
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/*
|
|
|
** {======================================================
|
|
|
** Generic Buffer manipulation
|