diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-03 15:53:34 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-03 15:53:34 +0200 |
commit | 44c617f7b756052c7cd059c96f89b85f0f5ec96c (patch) | |
tree | a9ac504d7ffa09500c9ea17bab963f1016f6fe79 /src/uniquekey.h | |
parent | 420e50697cd036a0d8ea1601961bd6974703ade1 (diff) | |
download | lanes-44c617f7b756052c7cd059c96f89b85f0f5ec96c.tar.gz lanes-44c617f7b756052c7cd059c96f89b85f0f5ec96c.tar.bz2 lanes-44c617f7b756052c7cd059c96f89b85f0f5ec96c.zip |
Moved lanes.sleep implementation to the C-side
Diffstat (limited to 'src/uniquekey.h')
-rw-r--r-- | src/uniquekey.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uniquekey.h b/src/uniquekey.h index cfc8ab0..7e86cbe 100644 --- a/src/uniquekey.h +++ b/src/uniquekey.h | |||
@@ -59,7 +59,7 @@ class RegistryUniqueKey | |||
59 | } | 59 | } |
60 | // --------------------------------------------------------------------------------------------- | 60 | // --------------------------------------------------------------------------------------------- |
61 | template <typename OP> | 61 | template <typename OP> |
62 | void setValue(lua_State* L_, OP operation_) const | 62 | void setValue(lua_State* const L_, OP operation_) const |
63 | { | 63 | { |
64 | // Note we can't check stack consistency because operation is not always a push (could be insert, replace, whatever) | 64 | // Note we can't check stack consistency because operation is not always a push (could be insert, replace, whatever) |
65 | pushKey(L_); // ... key | 65 | pushKey(L_); // ... key |
@@ -91,7 +91,7 @@ class RegistryUniqueKey | |||
91 | } | 91 | } |
92 | // --------------------------------------------------------------------------------------------- | 92 | // --------------------------------------------------------------------------------------------- |
93 | // equivalent to luaL_getsubtable | 93 | // equivalent to luaL_getsubtable |
94 | [[nodiscard]] bool getSubTable(lua_State* const L_, int narr_, int nrec_) const | 94 | [[nodiscard]] bool getSubTable(lua_State* const L_, int const narr_, int const nrec_) const |
95 | { | 95 | { |
96 | STACK_CHECK_START_REL(L_, 0); | 96 | STACK_CHECK_START_REL(L_, 0); |
97 | pushValue(L_); // L_: {}|nil | 97 | pushValue(L_); // L_: {}|nil |
@@ -108,7 +108,7 @@ class RegistryUniqueKey | |||
108 | return false; | 108 | return false; |
109 | } | 109 | } |
110 | // --------------------------------------------------------------------------------------------- | 110 | // --------------------------------------------------------------------------------------------- |
111 | void getSubTableMode(lua_State* L_, const char* mode_) const | 111 | void getSubTableMode(lua_State* const L_, char const* const mode_) const |
112 | { | 112 | { |
113 | STACK_CHECK_START_REL(L_, 0); | 113 | STACK_CHECK_START_REL(L_, 0); |
114 | if (!getSubTable(L_, 0, 0)) { // L_: {} | 114 | if (!getSubTable(L_, 0, 0)) { // L_: {} |