diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-06 10:23:30 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-06 10:23:30 +0200 |
commit | 75a7e10527f1588efa00677ee1f8f77591af0921 (patch) | |
tree | 460fd68f12ebea1a4afecd4d0e450b9aae1c5692 /src/compat.h | |
parent | a50367194b486e0abbe05aaee34b961e202635ba (diff) | |
download | lanes-75a7e10527f1588efa00677ee1f8f77591af0921.tar.gz lanes-75a7e10527f1588efa00677ee1f8f77591af0921.tar.bz2 lanes-75a7e10527f1588efa00677ee1f8f77591af0921.zip |
Fix transfer of nil uservalues triggering a Lua API check because of conversion to nil sentinels in keeper states
Diffstat (limited to 'src/compat.h')
-rw-r--r-- | src/compat.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/compat.h b/src/compat.h index 6307d86..1789a8b 100644 --- a/src/compat.h +++ b/src/compat.h | |||
@@ -67,14 +67,6 @@ inline void lua_pushglobaltable(lua_State* L_) | |||
67 | lua_pushvalue(L_, LUA_GLOBALSINDEX); | 67 | lua_pushvalue(L_, LUA_GLOBALSINDEX); |
68 | } | 68 | } |
69 | #endif // LUAJIT_VERSION_NUM | 69 | #endif // LUAJIT_VERSION_NUM |
70 | inline int lua_setuservalue(lua_State* L_, int idx_) | ||
71 | { | ||
72 | return lua_setfenv(L_, idx_); | ||
73 | } | ||
74 | inline void lua_getuservalue(lua_State* L_, int idx_) | ||
75 | { | ||
76 | lua_getfenv(L_, idx_); | ||
77 | } | ||
78 | inline size_t lua_rawlen(lua_State* L_, int idx_) | 70 | inline size_t lua_rawlen(lua_State* L_, int idx_) |
79 | { | 71 | { |
80 | return lua_objlen(L_, idx_); | 72 | return lua_objlen(L_, idx_); |