aboutsummaryrefslogtreecommitdiff
path: root/src/state.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-04-09 17:08:13 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-04-09 17:08:13 +0200
commitaa9b3594e11498ca0977d87a9d0875d7fc107253 (patch)
tree8e4e3152088a56611822c6e881179e89e69bef13 /src/state.cpp
parent95932749a53f46ae5901798a17e1f0c4c33ac6b2 (diff)
downloadlanes-aa9b3594e11498ca0977d87a9d0875d7fc107253.tar.gz
lanes-aa9b3594e11498ca0977d87a9d0875d7fc107253.tar.bz2
lanes-aa9b3594e11498ca0977d87a9d0875d7fc107253.zip
C++ migration: [[nodiscard]] everywhere. still have to check all std::ignore
Diffstat (limited to 'src/state.cpp')
-rw-r--r--src/state.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state.cpp b/src/state.cpp
index 6a9ada7..496e21e 100644
--- a/src/state.cpp
+++ b/src/state.cpp
@@ -49,7 +49,7 @@ THE SOFTWARE.
49// 49//
50// Upvalues: [1]: original 'require' function 50// Upvalues: [1]: original 'require' function
51// 51//
52static int luaG_new_require( lua_State* L) 52[[nodiscard]] static int luaG_new_require(lua_State* L)
53{ 53{
54 int rc; 54 int rc;
55 int const args = lua_gettop( L); // args 55 int const args = lua_gettop( L); // args
@@ -110,7 +110,7 @@ void serialize_require(DEBUGSPEW_PARAM_COMMA( Universe* U) lua_State* L)
110 110
111/*---=== luaG_newstate ===---*/ 111/*---=== luaG_newstate ===---*/
112 112
113static int require_lanes_core( lua_State* L) 113[[nodiscard]] static int require_lanes_core(lua_State* L)
114{ 114{
115 // leaves a copy of 'lanes.core' module table on the stack 115 // leaves a copy of 'lanes.core' module table on the stack
116 luaL_requiref( L, "lanes.core", luaopen_lanes_core, 0); 116 luaL_requiref( L, "lanes.core", luaopen_lanes_core, 0);
@@ -118,7 +118,7 @@ static int require_lanes_core( lua_State* L)
118} 118}
119 119
120 120
121static const luaL_Reg libs[] = 121static luaL_Reg const libs[] =
122{ 122{
123 { LUA_LOADLIBNAME, luaopen_package}, 123 { LUA_LOADLIBNAME, luaopen_package},
124 { LUA_TABLIBNAME, luaopen_table}, 124 { LUA_TABLIBNAME, luaopen_table},