aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-03-13 12:31:16 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-03-13 12:31:16 +0100
commitc0555fd48ee1f56c9ea6f8df99af97f78bdcf6ce (patch)
tree2d176f8d2acc914fb38949893e76858c13843bf8 /src
parentfb03f0e208801406400334014ebcf453ff6f1db0 (diff)
downloadlanes-c0555fd48ee1f56c9ea6f8df99af97f78bdcf6ce.tar.gz
lanes-c0555fd48ee1f56c9ea6f8df99af97f78bdcf6ce.tar.bz2
lanes-c0555fd48ee1f56c9ea6f8df99af97f78bdcf6ce.zip
Disable unit test "lanes.stack checker" in Release builds
Diffstat (limited to 'src')
-rw-r--r--src/debug.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/debug.hpp b/src/debug.hpp
index 66541c0..9ebea1f 100644
--- a/src/debug.hpp
+++ b/src/debug.hpp
@@ -40,6 +40,7 @@ class StackChecker final
40 DECLARE_UNIQUE_TYPE(Relative, int); 40 DECLARE_UNIQUE_TYPE(Relative, int);
41 DECLARE_UNIQUE_TYPE(Absolute, int); 41 DECLARE_UNIQUE_TYPE(Absolute, int);
42 42
43 // offer a way to bypass C assert during unit testing
43 static inline bool CallsCassert{ true }; 44 static inline bool CallsCassert{ true };
44 45
45 StackChecker(lua_State* const L_, Relative const offset_, SourceLocation const& where_ = Where()) 46 StackChecker(lua_State* const L_, Relative const offset_, SourceLocation const& where_ = Where())