diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-16 18:06:02 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-16 18:06:02 +0200 |
commit | bbb4f99918d00308b52af3289c29624bfeb0066b (patch) | |
tree | aebfba19ae4bb2bddc2beaa18f80a64d254b4ae6 /src/uniquekey.h | |
parent | d6f5a7795360e3c2a6fc2d424904b6daa1f2accd (diff) | |
download | lanes-bbb4f99918d00308b52af3289c29624bfeb0066b.tar.gz lanes-bbb4f99918d00308b52af3289c29624bfeb0066b.tar.bz2 lanes-bbb4f99918d00308b52af3289c29624bfeb0066b.zip |
some dead code elimination and other trifles
Diffstat (limited to 'src/uniquekey.h')
-rw-r--r-- | src/uniquekey.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uniquekey.h b/src/uniquekey.h index 78c0765..84553a5 100644 --- a/src/uniquekey.h +++ b/src/uniquekey.h | |||
@@ -44,8 +44,10 @@ class UniqueKey | |||
44 | } | 44 | } |
45 | void pushValue(lua_State* const L) const | 45 | void pushValue(lua_State* const L) const |
46 | { | 46 | { |
47 | STACK_CHECK_START_REL(L, 0); | ||
47 | pushKey(L); | 48 | pushKey(L); |
48 | lua_rawget(L, LUA_REGISTRYINDEX); | 49 | lua_rawget(L, LUA_REGISTRYINDEX); |
50 | STACK_CHECK(L, 1); | ||
49 | } | 51 | } |
50 | template <typename OP> | 52 | template <typename OP> |
51 | void setValue(lua_State* L, OP operation_) const | 53 | void setValue(lua_State* L, OP operation_) const |