diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-11-20 18:03:33 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-11-20 18:03:33 +0100 |
commit | 0f6f3c207c46fa28059403e5f16af774d20c7ea2 (patch) | |
tree | 8031145bb2534c33ca0f2c65b9de85696c8a8ee0 /src/lanes.cpp | |
parent | 304e4dfabe4555dff4aa72e75b677405fd30d1b3 (diff) | |
download | lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.tar.gz lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.tar.bz2 lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.zip |
More [[nodiscard]] boyscouting
Diffstat (limited to 'src/lanes.cpp')
-rw-r--r-- | src/lanes.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp index c65fc1c..39caee9 100644 --- a/src/lanes.cpp +++ b/src/lanes.cpp | |||
@@ -881,7 +881,8 @@ LANES_API int luaopen_lanes_core(lua_State* const L_) | |||
881 | 881 | ||
882 | // ################################################################################################# | 882 | // ################################################################################################# |
883 | 883 | ||
884 | [[nodiscard]] static int default_luaopen_lanes(lua_State* const L_) | 884 | [[nodiscard]] |
885 | static int default_luaopen_lanes(lua_State* const L_) | ||
885 | { | 886 | { |
886 | LuaError const _rc{ luaL_loadfile(L_, "lanes.lua") || lua_pcall(L_, 0, 1, 0) }; | 887 | LuaError const _rc{ luaL_loadfile(L_, "lanes.lua") || lua_pcall(L_, 0, 1, 0) }; |
887 | if (_rc != LuaError::OK) { | 888 | if (_rc != LuaError::OK) { |