From 7db7526a083bbeac01d3c4b30dafc78ce53d7c12 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Sat, 7 May 2022 02:08:50 +0100 Subject: [PATCH] Update to Luau 0.526 --- Cargo.toml | 2 +- src/ffi/luau/lua.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3c13e23..c2c9c02 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/ffi/luau/lua.rs b/src/ffi/luau/lua.rs index f25d84b..e6c164f 100644 --- a/src/ffi/luau/lua.rs +++ b/src/ffi/luau/lua.rs @@ -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); + pub fn lua_setuserdatadtor( + L: *mut lua_State, + tag: c_int, + dtor: Option, + ); pub fn lua_clonefunction(L: *mut lua_State, idx: c_int); }