@@ -102,7 +102,7 @@ pub type lua_Alloc =
102102 unsafe extern "C" fn ( ud : * mut c_void , ptr : * mut c_void , osize : usize , nsize : usize ) -> * mut c_void ;
103103
104104#[ cfg_attr( all( windows, raw_dylib) , link( name = "lua53" , kind = "raw-dylib" ) ) ]
105- extern "C-unwind" {
105+ unsafe extern "C-unwind" {
106106 //
107107 // State manipulation
108108 //
@@ -172,14 +172,14 @@ pub const LUA_OPLT: c_int = 1;
172172pub const LUA_OPLE : c_int = 2 ;
173173
174174#[ cfg_attr( all( windows, raw_dylib) , link( name = "lua53" , kind = "raw-dylib" ) ) ]
175- extern "C-unwind" {
175+ unsafe extern "C-unwind" {
176176 pub fn lua_arith ( L : * mut lua_State , op : c_int ) ;
177177 pub fn lua_rawequal ( L : * mut lua_State , idx1 : c_int , idx2 : c_int ) -> c_int ;
178178 pub fn lua_compare ( L : * mut lua_State , idx1 : c_int , idx2 : c_int , op : c_int ) -> c_int ;
179179}
180180
181181#[ cfg_attr( all( windows, raw_dylib) , link( name = "lua53" , kind = "raw-dylib" ) ) ]
182- extern "C-unwind" {
182+ unsafe extern "C-unwind" {
183183 //
184184 // Push functions (C -> stack)
185185 //
@@ -265,7 +265,7 @@ pub unsafe fn lua_pcall(L: *mut lua_State, n: c_int, r: c_int, f: c_int) -> c_in
265265}
266266
267267#[ cfg_attr( all( windows, raw_dylib) , link( name = "lua53" , kind = "raw-dylib" ) ) ]
268- extern "C-unwind" {
268+ unsafe extern "C-unwind" {
269269 //
270270 // Coroutine functions
271271 //
@@ -300,12 +300,12 @@ pub const LUA_GCSETSTEPMUL: c_int = 7;
300300pub const LUA_GCISRUNNING : c_int = 9 ;
301301
302302#[ cfg_attr( all( windows, raw_dylib) , link( name = "lua53" , kind = "raw-dylib" ) ) ]
303- extern "C-unwind" {
303+ unsafe extern "C-unwind" {
304304 pub fn lua_gc ( L : * mut lua_State , what : c_int , data : c_int ) -> c_int ;
305305}
306306
307307#[ cfg_attr( all( windows, raw_dylib) , link( name = "lua53" , kind = "raw-dylib" ) ) ]
308- extern "C-unwind" {
308+ unsafe extern "C-unwind" {
309309 //
310310 // Miscellaneous functions
311311 //
@@ -477,7 +477,7 @@ pub const LUA_MASKCOUNT: c_int = 1 << (LUA_HOOKCOUNT as usize);
477477pub type lua_Hook = unsafe extern "C-unwind" fn ( L : * mut lua_State , ar : * mut lua_Debug ) ;
478478
479479#[ cfg_attr( all( windows, raw_dylib) , link( name = "lua53" , kind = "raw-dylib" ) ) ]
480- extern "C-unwind" {
480+ unsafe extern "C-unwind" {
481481 pub fn lua_getstack ( L : * mut lua_State , level : c_int , ar : * mut lua_Debug ) -> c_int ;
482482 pub fn lua_getinfo ( L : * mut lua_State , what : * const c_char , ar : * mut lua_Debug ) -> c_int ;
483483 pub fn lua_getlocal ( L : * mut lua_State , ar : * const lua_Debug , n : c_int ) -> * const c_char ;
0 commit comments