Add Lua::scope back

This commit is contained in:
Alex Orlenko
2024-09-20 13:01:55 +01:00
parent 7c2e9b5a7c
commit da4404baa5
42 changed files with 883 additions and 1643 deletions
+1 -1
View File
@@ -365,7 +365,7 @@ pub(crate) unsafe fn init_error_registry(state: *mut ffi::lua_State) -> Result<(
// Create destructed userdata metatable
unsafe extern "C-unwind" fn destructed_error(state: *mut ffi::lua_State) -> c_int {
callback_error(state, |_| Err(Error::CallbackDestructed))
callback_error(state, |_| Err(Error::UserDataDestructed))
}
push_table(state, 0, 26, true)?;