summaryrefslogtreecommitdiff
path: root/src/thread.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2023-05-21 00:49:35 +0100
committerAlex Orlenko <zxteam@protonmail.com>2023-05-21 00:55:06 +0100
commit1c66a028785987ccd93869e1c69d0e4b0a3a7438 (patch)
tree942e606cb222e0d6e4589f4ca6389bc608515451 /src/thread.rs
parent1ac98e7d16a9a3739c369f5c88b6d83798997c0c (diff)
downloadmlua-1c66a028785987ccd93869e1c69d0e4b0a3a7438.zip
Update to Lua 5.4.6
Diffstat (limited to 'src/thread.rs')
-rw-r--r--src/thread.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/thread.rs b/src/thread.rs
index 21271db..8db3e35 100644
--- a/src/thread.rs
+++ b/src/thread.rs
@@ -232,8 +232,10 @@ impl<'lua> Thread<'lua> {
lua.push_ref(&self.0);
let thread_state = ffi::lua_tothread(state, -1);
- #[cfg(feature = "lua54")]
+ #[cfg(all(feature = "lua54", not(feature = "vendored")))]
let status = ffi::lua_resetthread(thread_state);
+ #[cfg(all(feature = "lua54", feature = "vendored"))]
+ let status = ffi::lua_closethread(thread_state, state);
#[cfg(feature = "lua54")]
if status != ffi::LUA_OK {
return Err(pop_error(thread_state, status));