aboutsummaryrefslogtreecommitdiff
path: root/src/uniquekey.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-05-27 16:30:26 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-05-27 16:30:26 +0200
commit0d3b030eb92657dc276a6188f61e5cfdd7e265cb (patch)
treebeb48685c3c300f3af5261799b8111f081f8230c /src/uniquekey.h
parent09c4750ef8973c08d6ef2aba70f5385ffd75f4c4 (diff)
downloadlanes-0d3b030eb92657dc276a6188f61e5cfdd7e265cb.tar.gz
lanes-0d3b030eb92657dc276a6188f61e5cfdd7e265cb.tar.bz2
lanes-0d3b030eb92657dc276a6188f61e5cfdd7e265cb.zip
Optional Decoda support (disabled by default)
Diffstat (limited to 'src/uniquekey.h')
-rw-r--r--src/uniquekey.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uniquekey.h b/src/uniquekey.h
index 9981bb8..cfc8ab0 100644
--- a/src/uniquekey.h
+++ b/src/uniquekey.h
@@ -62,9 +62,9 @@ class RegistryUniqueKey
62 void setValue(lua_State* L_, OP operation_) const 62 void setValue(lua_State* 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
66 operation_(L_); // ... key value 66 operation_(L_); // ... key value
67 lua_rawset(L_, LUA_REGISTRYINDEX); // ... 67 lua_rawset(L_, LUA_REGISTRYINDEX); // ...
68 } 68 }
69 // --------------------------------------------------------------------------------------------- 69 // ---------------------------------------------------------------------------------------------
70 template <typename T> 70 template <typename T>