aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-11-20 18:03:33 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-11-20 18:03:33 +0100
commit0f6f3c207c46fa28059403e5f16af774d20c7ea2 (patch)
tree8031145bb2534c33ca0f2c65b9de85696c8a8ee0 /src/lanes.cpp
parent304e4dfabe4555dff4aa72e75b677405fd30d1b3 (diff)
downloadlanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.tar.gz
lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.tar.bz2
lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.zip
More [[nodiscard]] boyscouting
Diffstat (limited to 'src/lanes.cpp')
-rw-r--r--src/lanes.cpp3
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]]
885static 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) {