mlua-sys: always inline lua_error

This commit is contained in:
Alex Orlenko
2024-01-03 11:31:39 +00:00
parent 69ff0c5509
commit c0a0983025
4 changed files with 5 additions and 0 deletions
+1
View File
@@ -239,6 +239,7 @@ extern "C-unwind" {
// lua_error does not return but is declared to return int, and Rust translates
// ! to void which can cause link-time errors if the platform linker is aware
// of return types and requires they match (for example: wasm does this).
#[inline(always)]
pub unsafe fn lua_error(L: *mut lua_State) -> ! {
lua_error_(L);
unreachable!();