Skip to content

Commit 81d7c81

Browse files
committed
Update Luau to 0.647
1 parent 0453029 commit 81d7c81

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

mlua-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ cfg-if = "1.0"
4040
pkg-config = "0.3.17"
4141
lua-src = { version = ">= 547.0.0, < 547.1.0", optional = true }
4242
luajit-src = { version = ">= 210.5.0, < 210.6.0", optional = true }
43-
luau0-src = { version = "0.10.0", optional = true }
43+
luau0-src = { version = "0.11.0", optional = true }
4444

4545
[lints.rust]
4646
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(raw_dylib)'] }

mlua-sys/src/luau/lua.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,9 @@ pub struct lua_Callbacks {
526526
pub debuginterrupt: Option<unsafe extern "C-unwind" fn(L: *mut lua_State, ar: *mut lua_Debug)>,
527527
/// gets called when protected call results in an error
528528
pub debugprotectederror: Option<unsafe extern "C-unwind" fn(L: *mut lua_State)>,
529+
530+
/// gets called when memory is allocated
531+
pub onallocate: Option<unsafe extern "C-unwind" fn(L: *mut lua_State, osize: usize, nsize: usize)>,
529532
}
530533

531534
extern "C" {
@@ -535,4 +538,5 @@ extern "C" {
535538
// Functions from customization lib
536539
extern "C" {
537540
pub fn luau_setfflag(name: *const c_char, value: c_int) -> c_int;
541+
pub fn lua_getmetatablepointer(L: *mut lua_State, idx: c_int) -> *const c_void;
538542
}

0 commit comments

Comments
 (0)