Skip to content

Commit

Permalink
Fix lua53/lua54 luaL_error definition (for wasm32)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Jan 3, 2024
1 parent 244e6c9 commit 514ec24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mlua-sys/src/lua53/lauxlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion mlua-sys/src/lua54/lauxlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 514ec24

Please sign in to comment.