diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-17 10:04:48 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-17 10:04:48 +0200 |
| commit | be7e5a99aa926d1a823031701453f9aa5c438ef6 (patch) | |
| tree | 8da1306166d116fddf0551a062898399bd778977 /src | |
| parent | f37d74d6b7a60244a9b9f42357a2acc5c9eb6d79 (diff) | |
| download | lanes-be7e5a99aa926d1a823031701453f9aa5c438ef6.tar.gz lanes-be7e5a99aa926d1a823031701453f9aa5c438ef6.tar.bz2 lanes-be7e5a99aa926d1a823031701453f9aa5c438ef6.zip | |
Fix LUA_ASSERT not showing the line number properly
Diffstat (limited to 'src')
| -rw-r--r-- | src/macros_and_utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macros_and_utils.h b/src/macros_and_utils.h index d71c9da..1427ef1 100644 --- a/src/macros_and_utils.h +++ b/src/macros_and_utils.h | |||
| @@ -73,10 +73,10 @@ template <typename... ARGS> | |||
| 73 | 73 | ||
| 74 | #else // NDEBUG | 74 | #else // NDEBUG |
| 75 | 75 | ||
| 76 | inline void LUA_ASSERT_IMPL(lua_State* L_, bool cond_, char const* file_, size_t const line_, char const* txt_) | 76 | inline void LUA_ASSERT_IMPL(lua_State* L_, bool cond_, char const* file_, int const line_, char const* txt_) |
| 77 | { | 77 | { |
| 78 | if (!cond_) { | 78 | if (!cond_) { |
| 79 | raise_luaL_error(L_, "LUA_ASSERT %s:%llu '%s'", file_, line_, txt_); | 79 | raise_luaL_error(L_, "LUA_ASSERT %s:%d '%s'", file_, line_, txt_); |
| 80 | } | 80 | } |
| 81 | } | 81 | } |
| 82 | 82 | ||
