diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 14:53:09 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 14:53:09 +0200 |
commit | 4044e86ea4197535b70bc434634faf90cd2317d0 (patch) | |
tree | 522af1b44e3dda30ff66ed2245aad54ceeb7e1b2 /src/compat.h | |
parent | 958ed4f1e29418e90f3dd3de6779e30e05f70448 (diff) | |
download | lanes-4044e86ea4197535b70bc434634faf90cd2317d0.tar.gz lanes-4044e86ea4197535b70bc434634faf90cd2317d0.tar.bz2 lanes-4044e86ea4197535b70bc434634faf90cd2317d0.zip |
Strengthen more code with UserValueIndex
Diffstat (limited to 'src/compat.h')
-rw-r--r-- | src/compat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compat.h b/src/compat.h index 0b6b12b..0ea35bf 100644 --- a/src/compat.h +++ b/src/compat.h | |||
@@ -81,8 +81,8 @@ inline int luaL_optint(lua_State* L_, int n_, lua_Integer d_) | |||
81 | #if LUA_VERSION_NUM < 504 | 81 | #if LUA_VERSION_NUM < 504 |
82 | 82 | ||
83 | void* lua_newuserdatauv(lua_State* L_, size_t sz_, UserValueCount nuvalue_); | 83 | void* lua_newuserdatauv(lua_State* L_, size_t sz_, UserValueCount nuvalue_); |
84 | int lua_getiuservalue(lua_State* L_, StackIndex idx_, int n_); | 84 | int lua_getiuservalue(lua_State* L_, StackIndex idx_, UserValueIndex n_); |
85 | int lua_setiuservalue(lua_State* L_, StackIndex idx_, int n_); | 85 | int lua_setiuservalue(lua_State* L_, StackIndex idx_, UserValueIndex n_); |
86 | 86 | ||
87 | #define LUA_GNAME "_G" | 87 | #define LUA_GNAME "_G" |
88 | 88 | ||