aboutsummaryrefslogtreecommitdiff
path: root/src/macros_and_utils.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-03-20 09:09:27 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-03-20 09:09:27 +0100
commit0b516e9490b51bdd15c347fcda35b5dbb06b4829 (patch)
tree33e16fe3a143fa6dcfe3d4b57f0b731c8e414652 /src/macros_and_utils.h
parentf707ad2568e6bfb8f34496ce647d0fd153723448 (diff)
downloadlanes-0b516e9490b51bdd15c347fcda35b5dbb06b4829.tar.gz
lanes-0b516e9490b51bdd15c347fcda35b5dbb06b4829.tar.bz2
lanes-0b516e9490b51bdd15c347fcda35b5dbb06b4829.zip
C++ migration: bool_t → bool
Diffstat (limited to 'src/macros_and_utils.h')
-rw-r--r--src/macros_and_utils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/macros_and_utils.h b/src/macros_and_utils.h
index 5377477..8a4ffb3 100644
--- a/src/macros_and_utils.h
+++ b/src/macros_and_utils.h
@@ -41,7 +41,7 @@ extern char const* debugspew_indent;
41 int const L##_delta = offset_; \ 41 int const L##_delta = offset_; \
42 if( (L##_delta < 0) || (lua_gettop( L) < L##_delta)) \ 42 if( (L##_delta < 0) || (lua_gettop( L) < L##_delta)) \
43 { \ 43 { \
44 assert( FALSE); \ 44 assert( false); \
45 (void) luaL_error( L, "STACK INIT ASSERT failed (%d not %d): %s:%d", lua_gettop( L), L##_delta, __FILE__, __LINE__); \ 45 (void) luaL_error( L, "STACK INIT ASSERT failed (%d not %d): %s:%d", lua_gettop( L), L##_delta, __FILE__, __LINE__); \
46 } \ 46 } \
47 int const L##_oldtop = lua_gettop( L) - L##_delta 47 int const L##_oldtop = lua_gettop( L) - L##_delta
@@ -51,7 +51,7 @@ extern char const* debugspew_indent;
51 int const L##_pos = offset_; \ 51 int const L##_pos = offset_; \
52 if( lua_gettop( L) < L##_pos) \ 52 if( lua_gettop( L) < L##_pos) \
53 { \ 53 { \
54 assert( FALSE); \ 54 assert( false); \
55 (void) luaL_error( L, "STACK INIT ASSERT failed (%d not %d): %s:%d", lua_gettop( L), L##_pos, __FILE__, __LINE__); \ 55 (void) luaL_error( L, "STACK INIT ASSERT failed (%d not %d): %s:%d", lua_gettop( L), L##_pos, __FILE__, __LINE__); \
56 } \ 56 } \
57 int const L##_oldtop = 0 57 int const L##_oldtop = 0
@@ -63,7 +63,7 @@ extern char const* debugspew_indent;
63 int stack_check_b = (change); \ 63 int stack_check_b = (change); \
64 if( stack_check_a != stack_check_b) \ 64 if( stack_check_a != stack_check_b) \
65 { \ 65 { \
66 assert( FALSE); \ 66 assert( false); \
67 luaL_error( L, "STACK ASSERT failed (%d not %d): %s:%d", stack_check_a, stack_check_b, __FILE__, __LINE__); \ 67 luaL_error( L, "STACK ASSERT failed (%d not %d): %s:%d", stack_check_a, stack_check_b, __FILE__, __LINE__); \
68 } \ 68 } \
69 } while( 0) 69 } while( 0)