Skip to content

Commit bca1afe

Browse files
committed
Bump Luau to 0.744
1 parent 21eeaf5 commit bca1afe

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎mlua-sys/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ cfg-if = "1.0"
4343
pkg-config = "0.3.17"
4444
lua-src = { version = ">= 551.0.2, < 551.1.0", optional = true }
4545
luajit-src = { version = ">= 210.7.0, < 210.8.0", optional = true }
46-
luau0-src = { version = "0.22.0", optional = true }
46+
luau0-src = { version = "0.22.1", optional = true }
4747

4848
[lints.rust]
4949
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(raw_dylib)'] }

‎mlua-sys/src/luau/compat.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use super::luacode::*;
1313
pub const LUA_RESUMEERROR: c_int = -1;
1414

1515
// Keep in sync with Bytecode.h
16-
const LBC_VERSION_MAX: u8 = 11;
16+
const LBC_VERSION_MAX: u8 = 14;
1717
const LBC_TYPE_VERSION_MIN: u8 = 1;
1818
const LBC_TYPE_VERSION_MAX: u8 = 3;
1919

‎mlua-sys/src/luau/lua.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ unsafe extern "C-unwind" {
275275
pub fn lua_getthreaddata(L: *mut lua_State) -> *mut c_void;
276276
pub fn lua_setthreaddata(L: *mut lua_State, data: *mut c_void);
277277
pub fn lua_costatus(L: *mut lua_State, co: *mut lua_State) -> c_int;
278+
279+
pub fn lua_hasfinalizers(L: *mut lua_State) -> c_int;
280+
pub fn lua_pushfinalizerfunction(L: *mut lua_State, co: *mut lua_State, toclose: c_int);
281+
pub fn lua_addfinalizer(L: *mut lua_State, co: *mut lua_State, idx: c_int);
278282
}
279283

280284
#[inline(always)]

0 commit comments

Comments
 (0)