aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-06 10:23:30 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-06 10:23:30 +0200
commit75a7e10527f1588efa00677ee1f8f77591af0921 (patch)
tree460fd68f12ebea1a4afecd4d0e450b9aae1c5692 /src/compat.h
parenta50367194b486e0abbe05aaee34b961e202635ba (diff)
downloadlanes-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.h8
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
70inline int lua_setuservalue(lua_State* L_, int idx_)
71{
72 return lua_setfenv(L_, idx_);
73}
74inline void lua_getuservalue(lua_State* L_, int idx_)
75{
76 lua_getfenv(L_, idx_);
77}
78inline size_t lua_rawlen(lua_State* L_, int idx_) 70inline size_t lua_rawlen(lua_State* L_, int idx_)
79{ 71{
80 return lua_objlen(L_, idx_); 72 return lua_objlen(L_, idx_);