summaryrefslogtreecommitdiffstats
path: root/vendor/unwinding/src/personality_dummy.rs
blob: ff026c7b9417e2089d28af4cfa60c4d671caeaa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::abi::*;
use crate::util::*;

#[lang = "eh_personality"]
unsafe extern "C" fn personality(
    version: c_int,
    _actions: UnwindAction,
    _exception_class: u64,
    _exception: *mut UnwindException,
    _ctx: &mut UnwindContext<'_>,
) -> UnwindReasonCode {
    if version != 1 {
        return UnwindReasonCode::FATAL_PHASE1_ERROR;
    }
    UnwindReasonCode::CONTINUE_UNWIND
}