Update to Luau 0.526

This commit is contained in:
Alex Orlenko 2022-05-07 02:08:50 +01:00
parent bea9b0f8b5
commit 7db7526a08
No known key found for this signature in database
GPG key ID: 4C150C250863B96D
2 changed files with 6 additions and 2 deletions

View file

@ -60,7 +60,7 @@ cc = { version = "1.0" }
pkg-config = { version = "0.3.17" }
lua-src = { version = ">= 544.0.0, < 550.0.0", optional = true }
luajit-src = { version = ">= 210.3.1, < 220.0.0", optional = true }
luau0-src = { version = "0.2.2", optional = true }
luau0-src = { version = "0.3", optional = true }
[dev-dependencies]
rustyline = "9.0"

View file

@ -259,7 +259,11 @@ extern "C" {
pub fn lua_concat(L: *mut lua_State, n: c_int);
// TODO: lua_encodepointer
pub fn lua_clock() -> c_double;
pub fn lua_setuserdatadtor(L: *mut lua_State, tag: c_int, dtor: Option<lua_Udestructor>);
pub fn lua_setuserdatadtor(
L: *mut lua_State,
tag: c_int,
dtor: Option<unsafe extern "C" fn(*mut lua_State, *mut c_void)>,
);
pub fn lua_clonefunction(L: *mut lua_State, idx: c_int);
}