aboutsummaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/debug.h b/src/debug.h
index a0a4b8d..99fe48a 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -15,6 +15,7 @@ inline void LUA_ASSERT_IMPL(lua_State* L_, bool cond_, char const* file_, int co
15} 15}
16 16
17#define LUA_ASSERT(L_, cond_) LUA_ASSERT_IMPL(L_, cond_, __FILE__, __LINE__, #cond_) 17#define LUA_ASSERT(L_, cond_) LUA_ASSERT_IMPL(L_, cond_, __FILE__, __LINE__, #cond_)
18#define LUA_ASSERT_CODE(code_) code_
18 19
19class StackChecker 20class StackChecker
20{ 21{
@@ -102,6 +103,7 @@ class StackChecker
102#else // HAVE_LUA_ASSERT() 103#else // HAVE_LUA_ASSERT()
103 104
104#define LUA_ASSERT(L_, c) nullptr // nothing 105#define LUA_ASSERT(L_, c) nullptr // nothing
106#define LUA_ASSERT_CODE(code_) nullptr
105 107
106#define STACK_CHECK_START_REL(L_, offset_) 108#define STACK_CHECK_START_REL(L_, offset_)
107#define STACK_CHECK_START_ABS(L_, offset_) 109#define STACK_CHECK_START_ABS(L_, offset_)