summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2022-06-06 22:40:29 +0100
committerAlex Orlenko <zxteam@protonmail.com>2022-06-06 22:40:29 +0100
commit9005f32a984ed700dd87008bbd1452159203e7de (patch)
tree0b9ad7bf66a94612cf4a92992d1277bf6915f405 /src
parent93d36b90686c12a3755d8e64146b08ecaa789d59 (diff)
downloadmlua-9005f32a984ed700dd87008bbd1452159203e7de.zip
Add `ffi::luau::lua_tolightuserdata` introduced in Luau 0.528
Diffstat (limited to 'src')
-rw-r--r--src/ffi/luau/lua.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ffi/luau/lua.rs b/src/ffi/luau/lua.rs
index e6c164f..8aa83fc 100644
--- a/src/ffi/luau/lua.rs
+++ b/src/ffi/luau/lua.rs
@@ -133,6 +133,7 @@ extern "C" {
pub fn lua_namecallatom(L: *mut lua_State, atom: *mut c_int) -> *const c_char;
pub fn lua_objlen(L: *mut lua_State, idx: c_int) -> usize;
pub fn lua_tocfunction(L: *mut lua_State, idx: c_int) -> Option<lua_CFunction>;
+ pub fn lua_tolightuserdata(L: *mut lua_State, idx: c_int) -> *mut c_void;
pub fn lua_touserdata(L: *mut lua_State, idx: c_int) -> *mut c_void;
pub fn lua_touserdatatagged(L: *mut lua_State, idx: c_int, tag: c_int) -> *mut c_void;
pub fn lua_userdatatag(L: *mut lua_State, idx: c_int) -> c_int;