diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-16 18:06:02 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-16 18:06:02 +0200 |
commit | bbb4f99918d00308b52af3289c29624bfeb0066b (patch) | |
tree | aebfba19ae4bb2bddc2beaa18f80a64d254b4ae6 /src/macros_and_utils.h | |
parent | d6f5a7795360e3c2a6fc2d424904b6daa1f2accd (diff) | |
download | lanes-bbb4f99918d00308b52af3289c29624bfeb0066b.tar.gz lanes-bbb4f99918d00308b52af3289c29624bfeb0066b.tar.bz2 lanes-bbb4f99918d00308b52af3289c29624bfeb0066b.zip |
some dead code elimination and other trifles
Diffstat (limited to 'src/macros_and_utils.h')
-rw-r--r-- | src/macros_and_utils.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/macros_and_utils.h b/src/macros_and_utils.h index 073e940..c01363a 100644 --- a/src/macros_and_utils.h +++ b/src/macros_and_utils.h | |||
@@ -35,7 +35,6 @@ using namespace std::chrono_literals; | |||
35 | #ifdef NDEBUG | 35 | #ifdef NDEBUG |
36 | 36 | ||
37 | #define _ASSERT_L(lua,c) //nothing | 37 | #define _ASSERT_L(lua,c) //nothing |
38 | #define STACK_DUMP(L) //nothing | ||
39 | 38 | ||
40 | #define STACK_CHECK_START_REL(L, offset_) | 39 | #define STACK_CHECK_START_REL(L, offset_) |
41 | #define STACK_CHECK_START_ABS(L, offset_) | 40 | #define STACK_CHECK_START_ABS(L, offset_) |
@@ -45,8 +44,7 @@ using namespace std::chrono_literals; | |||
45 | 44 | ||
46 | #else // NDEBUG | 45 | #else // NDEBUG |
47 | 46 | ||
48 | #define _ASSERT_L(L, cond_) if( (cond_) == 0) { (void) luaL_error(L, "ASSERT failed: %s:%d '%s'", __FILE__, __LINE__, #cond_);} | 47 | #define _ASSERT_L(L, cond_) if ((cond_) == 0) { (void) luaL_error(L, "ASSERT failed: %s:%d '%s'", __FILE__, __LINE__, #cond_);} |
49 | #define STACK_DUMP(L) luaG_dump(L) | ||
50 | 48 | ||
51 | class StackChecker | 49 | class StackChecker |
52 | { | 50 | { |