aboutsummaryrefslogtreecommitdiff
path: root/src/uniquekey.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uniquekey.hpp')
-rw-r--r--src/uniquekey.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/uniquekey.hpp b/src/uniquekey.hpp
index 9041363..a8386a2 100644
--- a/src/uniquekey.hpp
+++ b/src/uniquekey.hpp
@@ -73,7 +73,8 @@ class RegistryUniqueKey
73 } 73 }
74 // --------------------------------------------------------------------------------------------- 74 // ---------------------------------------------------------------------------------------------
75 template <typename T> 75 template <typename T>
76 [[nodiscard]] T* readLightUserDataValue(lua_State* const L_) const 76 [[nodiscard]]
77 T* readLightUserDataValue(lua_State* const L_) const
77 { 78 {
78 STACK_GROW(L_, 1); 79 STACK_GROW(L_, 1);
79 STACK_CHECK_START_REL(L_, 0); 80 STACK_CHECK_START_REL(L_, 0);
@@ -84,7 +85,8 @@ class RegistryUniqueKey
84 return value; 85 return value;
85 } 86 }
86 // --------------------------------------------------------------------------------------------- 87 // ---------------------------------------------------------------------------------------------
87 [[nodiscard]] bool readBoolValue(lua_State* const L_) const 88 [[nodiscard]]
89 bool readBoolValue(lua_State* const L_) const
88 { 90 {
89 STACK_GROW(L_, 1); 91 STACK_GROW(L_, 1);
90 STACK_CHECK_START_REL(L_, 0); 92 STACK_CHECK_START_REL(L_, 0);
@@ -96,7 +98,8 @@ class RegistryUniqueKey
96 } 98 }
97 // --------------------------------------------------------------------------------------------- 99 // ---------------------------------------------------------------------------------------------
98 // equivalent to luaL_getsubtable 100 // equivalent to luaL_getsubtable
99 [[nodiscard]] bool getSubTable(lua_State* const L_, NArr const narr_, NRec const nrec_) const 101 [[nodiscard]]
102 bool getSubTable(lua_State* const L_, NArr const narr_, NRec const nrec_) const
100 { 103 {
101 STACK_CHECK_START_REL(L_, 0); 104 STACK_CHECK_START_REL(L_, 0);
102 pushValue(L_); // L_: {}|nil 105 pushValue(L_); // L_: {}|nil