@@ -119,7 +119,6 @@ where
119
119
nresults : c_int ,
120
120
}
121
121
122
- #[ cfg_attr( unwind, unwind) ]
123
122
unsafe extern "C" fn do_call < F , R > ( state : * mut ffi:: lua_State ) -> c_int
124
123
where
125
124
F : FnOnce ( * mut ffi:: lua_State ) -> R ,
@@ -270,7 +269,6 @@ pub unsafe fn take_userdata<T>(state: *mut ffi::lua_State) -> T {
270
269
ptr:: read ( ud)
271
270
}
272
271
273
- #[ cfg_attr( unwind, unwind) ]
274
272
pub unsafe extern "C" fn userdata_destructor < T > ( state : * mut ffi:: lua_State ) -> c_int {
275
273
callback_error ( state, || {
276
274
take_userdata :: < T > ( state) ;
@@ -308,7 +306,6 @@ where
308
306
// Takes an error at the top of the stack, and if it is a WrappedError, converts it to an
309
307
// Error::CallbackError with a traceback, if it is some lua type, prints the error along with a
310
308
// traceback, and if it is a WrappedPanic, does not modify it.
311
- #[ cfg_attr( unwind, unwind) ]
312
309
pub unsafe extern "C" fn error_traceback ( state : * mut ffi:: lua_State ) -> c_int {
313
310
// I believe luaL_traceback requires this much free stack to not error.
314
311
const LUA_TRACEBACK_STACK : c_int = 11 ;
@@ -355,7 +352,6 @@ pub unsafe extern "C" fn error_traceback(state: *mut ffi::lua_State) -> c_int {
355
352
}
356
353
357
354
// A variant of pcall that does not allow lua to catch panic errors from callback_error
358
- #[ cfg_attr( unwind, unwind) ]
359
355
pub unsafe extern "C" fn safe_pcall ( state : * mut ffi:: lua_State ) -> c_int {
360
356
ffi:: luaL_checkstack ( state, 2 , ptr:: null ( ) ) ;
361
357
@@ -378,9 +374,7 @@ pub unsafe extern "C" fn safe_pcall(state: *mut ffi::lua_State) -> c_int {
378
374
}
379
375
380
376
// A variant of xpcall that does not allow lua to catch panic errors from callback_error
381
- #[ cfg_attr( unwind, unwind) ]
382
377
pub unsafe extern "C" fn safe_xpcall ( state : * mut ffi:: lua_State ) -> c_int {
383
- #[ cfg_attr( unwind, unwind) ]
384
378
unsafe extern "C" fn xpcall_msgh ( state : * mut ffi:: lua_State ) -> c_int {
385
379
ffi:: luaL_checkstack ( state, 2 , ptr:: null ( ) ) ;
386
380
@@ -480,7 +474,6 @@ pub unsafe fn init_error_metatables(state: *mut ffi::lua_State) {
480
474
481
475
// Create error metatable
482
476
483
- #[ cfg_attr( unwind, unwind) ]
484
477
unsafe extern "C" fn error_tostring ( state : * mut ffi:: lua_State ) -> c_int {
485
478
ffi:: luaL_checkstack ( state, 2 , ptr:: null ( ) ) ;
486
479
@@ -544,7 +537,6 @@ pub unsafe fn init_error_metatables(state: *mut ffi::lua_State) {
544
537
545
538
// Create destructed userdata metatable
546
539
547
- #[ cfg_attr( unwind, unwind) ]
548
540
unsafe extern "C" fn destructed_error ( state : * mut ffi:: lua_State ) -> c_int {
549
541
ffi:: luaL_checkstack ( state, 2 , ptr:: null ( ) ) ;
550
542
push_wrapped_error ( state, Error :: CallbackDestructed ) ;
0 commit comments