diff options
Diffstat (limited to 'src/tools.h')
-rw-r--r-- | src/tools.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools.h b/src/tools.h index d155c65..aad26df 100644 --- a/src/tools.h +++ b/src/tools.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #define STACK_END(L,c) /*nothing*/ | 22 | #define STACK_END(L,c) /*nothing*/ |
23 | #define STACK_DUMP(L) /*nothing*/ | 23 | #define STACK_DUMP(L) /*nothing*/ |
24 | #define DEBUG() /*nothing*/ | 24 | #define DEBUG() /*nothing*/ |
25 | #define DEBUGEXEC(_code) {} /*nothing*/ | ||
25 | #else | 26 | #else |
26 | #define _ASSERT_L(lua,c) { if (!(c)) luaL_error( lua, "ASSERT failed: %s:%d '%s'", __FILE__, __LINE__, #c ); } | 27 | #define _ASSERT_L(lua,c) { if (!(c)) luaL_error( lua, "ASSERT failed: %s:%d '%s'", __FILE__, __LINE__, #c ); } |
27 | // | 28 | // |
@@ -32,6 +33,7 @@ | |||
32 | 33 | ||
33 | #define STACK_DUMP(L) luaG_dump(L); | 34 | #define STACK_DUMP(L) luaG_dump(L); |
34 | #define DEBUG() fprintf( stderr, "<<%s %d>>\n", __FILE__, __LINE__ ); | 35 | #define DEBUG() fprintf( stderr, "<<%s %d>>\n", __FILE__, __LINE__ ); |
36 | #define DEBUGEXEC(_code) {_code;} /*nothing*/ | ||
35 | #endif | 37 | #endif |
36 | #define ASSERT_L(c) _ASSERT_L(L,c) | 38 | #define ASSERT_L(c) _ASSERT_L(L,c) |
37 | 39 | ||