personality_dummy.rs 393 B

12345678910111213141516
  1. use crate::abi::*;
  2. use crate::util::*;
  3. #[lang = "eh_personality"]
  4. unsafe extern "C" fn personality(
  5. version: c_int,
  6. _actions: UnwindAction,
  7. _exception_class: u64,
  8. _exception: *mut UnwindException,
  9. _ctx: &mut UnwindContext<'_>,
  10. ) -> UnwindReasonCode {
  11. if version != 1 {
  12. return UnwindReasonCode::FATAL_PHASE1_ERROR;
  13. }
  14. UnwindReasonCode::CONTINUE_UNWIND
  15. }