diff --git a/mlua-sys/src/lua53/lauxlib.rs b/mlua-sys/src/lua53/lauxlib.rs index 67cde638..258ab301 100644 --- a/mlua-sys/src/lua53/lauxlib.rs +++ b/mlua-sys/src/lua53/lauxlib.rs @@ -51,7 +51,7 @@ extern "C-unwind" { pub fn luaL_checkudata(L: *mut lua_State, ud: c_int, tname: *const c_char) -> *mut c_void; pub fn luaL_where(L: *mut lua_State, lvl: c_int); - pub fn luaL_error(L: *mut lua_State, fmt: *const c_char, ...) -> !; + pub fn luaL_error(L: *mut lua_State, fmt: *const c_char, ...) -> c_int; pub fn luaL_checkoption( L: *mut lua_State, diff --git a/mlua-sys/src/lua54/lauxlib.rs b/mlua-sys/src/lua54/lauxlib.rs index 9ce7d0cd..5be2ba6b 100644 --- a/mlua-sys/src/lua54/lauxlib.rs +++ b/mlua-sys/src/lua54/lauxlib.rs @@ -50,7 +50,7 @@ extern "C-unwind" { pub fn luaL_checkudata(L: *mut lua_State, ud: c_int, tname: *const c_char) -> *mut c_void; pub fn luaL_where(L: *mut lua_State, lvl: c_int); - pub fn luaL_error(L: *mut lua_State, fmt: *const c_char, ...) -> !; + pub fn luaL_error(L: *mut lua_State, fmt: *const c_char, ...) -> c_int; pub fn luaL_checkoption( L: *mut lua_State,