Daniele Bartolini 10 năm trước cách đây
mục cha
commit
fd8f2b9e71
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/lua/lua_stack.h

+ 2 - 1
src/lua/lua_stack.h

@@ -42,7 +42,8 @@
 	#define CHECKSTRING(stack, i) luaL_checkstring(stack, i)
 	#define CHECKSTRING(stack, i) luaL_checkstring(stack, i)
 
 
 	#define LUA_ASSERT(condition, stack, msg, ...) do { if (!(condition)) {\
 	#define LUA_ASSERT(condition, stack, msg, ...) do { if (!(condition)) {\
-		stack.push_fstring("\nLua assertion failed: %s\n\t" msg "\n", #condition, ##__VA_ARGS__); lua_error(stack.state()); }} while (0);
+		stack.push_fstring("\nLua assertion failed: %s\n\t" msg "\n", #condition, ##__VA_ARGS__);\
+		lua_error(stack.state()); }} while (0);
 #else
 #else
 	#define CHECKUDATA(stack, i, expected) lua_touserdata(stack, i)
 	#define CHECKUDATA(stack, i, expected) lua_touserdata(stack, i)
 	#define CHECKLIGHTDATA(stack, i, cf, expected) lua_touserdata(stack, i)
 	#define CHECKLIGHTDATA(stack, i, cf, expected) lua_touserdata(stack, i)