33 #ifndef LUA_STACK_CHECK_H_
34 #define LUA_STACK_CHECK_H_
54 int m_topAfter = lua_gettop(
m_L);
64 #define LUA_STACK_CHECK_STRINGIFY(x) #x
65 #define LUA_STACK_CHECK_TOSTRING(x) LUA_STACK_CHECK_STRINGIFY(x)
67 #define LUA_STACK_CHECK(L, growth) ::ug::bridge::LuaStackCheck check##__LINE__(L, __FILE__ ":" LUA_STACK_CHECK_TOSTRING(__LINE__), growth)
71 #define LUA_STACK_CHECK(L, growth)
Definition: lua_stack_check.h:43
const char * m_msg
Definition: lua_stack_check.h:61
int m_growth
Definition: lua_stack_check.h:60
LuaStackCheck(lua_State *L, const char *msg, int growth=0)
Definition: lua_stack_check.h:45
~LuaStackCheck()
Definition: lua_stack_check.h:52
int m_topBefore
Definition: lua_stack_check.h:59
lua_State * m_L
Definition: lua_stack_check.h:58
#define UG_ASSERT(expr, msg)
Definition: assert.h:70
struct lua_State lua_State
Definition: lua_table_handle.h:40