diff options
Diffstat (limited to 'src/state.cpp')
-rw-r--r-- | src/state.cpp | 6 |
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 | // |
52 | static 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 | ||
113 | static 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 | ||
121 | static const luaL_Reg libs[] = | 121 | static 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}, |