diff options
Diffstat (limited to 'src/tools.cpp')
-rw-r--r-- | src/tools.cpp | 2 |
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]] | ||
70 | FuncSubType luaG_getfuncsubtype(lua_State* const L_, StackIndex const i_) | 71 | FuncSubType 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_) | |||
93 | namespace tools { | 94 | namespace 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); |