Skip to content

Commit 75c23e5

Browse files
committed
Add lua_cpcall to Luau ffi (0.688+)
1 parent 347856b commit 75c23e5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mlua-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ cfg-if = "1.0"
4141
pkg-config = "0.3.17"
4242
lua-src = { version = ">= 548.1.0, < 548.2.0", optional = true }
4343
luajit-src = { version = ">= 210.6.0, < 210.7.0", optional = true }
44-
luau0-src = { version = "0.15.4", optional = true }
44+
luau0-src = { version = "0.15.6", optional = true }
4545

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

mlua-sys/src/luau/lua.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ unsafe extern "C-unwind" {
235235
) -> c_int;
236236
pub fn lua_call(L: *mut lua_State, nargs: c_int, nresults: c_int);
237237
pub fn lua_pcall(L: *mut lua_State, nargs: c_int, nresults: c_int, errfunc: c_int) -> c_int;
238+
pub fn lua_cpcall(L: *mut lua_State, f: lua_CFunction, ud: *mut c_void) -> c_int;
238239

239240
//
240241
// Coroutine functions

0 commit comments

Comments
 (0)