aboutsummaryrefslogtreecommitdiff
path: root/src/tools.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-02-05 16:24:35 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-02-05 16:24:35 +0100
commit887fc613dd943d1221d5a2a3b96cee37c0d81248 (patch)
tree7151029f79e115d8822291644e11244def30079d /src/tools.cpp
parent05e4cce366cccf92ad88f80695efa548fae187de (diff)
downloadlanes-887fc613dd943d1221d5a2a3b96cee37c0d81248.tar.gz
lanes-887fc613dd943d1221d5a2a3b96cee37c0d81248.tar.bz2
lanes-887fc613dd943d1221d5a2a3b96cee37c0d81248.zip
All enums are [[nodiscard]]
Diffstat (limited to 'src/tools.cpp')
-rw-r--r--src/tools.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools.cpp b/src/tools.cpp
index f3be85c..ee6d720 100644
--- a/src/tools.cpp
+++ b/src/tools.cpp
@@ -67,6 +67,7 @@ static int dummy_writer([[maybe_unused]] lua_State* const L_, [[maybe_unused]] v
67 * +-----------------+-------------------+------------+----------+ 67 * +-----------------+-------------------+------------+----------+
68 */ 68 */
69 69
70[[nodiscard]]
70FuncSubType luaG_getfuncsubtype(lua_State* const L_, StackIndex const i_) 71FuncSubType luaG_getfuncsubtype(lua_State* const L_, StackIndex const i_)
71{ 72{
72 if (lua_tocfunction(L_, i_)) { // nullptr for LuaJIT-fast && bytecode functions 73 if (lua_tocfunction(L_, i_)) { // nullptr for LuaJIT-fast && bytecode functions
@@ -93,6 +94,7 @@ FuncSubType luaG_getfuncsubtype(lua_State* const L_, StackIndex const i_)
93namespace tools { 94namespace tools {
94 95
95 // inspired from tconcat() in ltablib.c 96 // inspired from tconcat() in ltablib.c
97 [[nodiscard]]
96 std::string_view PushFQN(lua_State* const L_, StackIndex const t_, TableIndex const last_) 98 std::string_view PushFQN(lua_State* const L_, StackIndex const t_, TableIndex const last_)
97 { 99 {
98 STACK_CHECK_START_REL(L_, 0); 100 STACK_CHECK_START_REL(L_, 0);