This commit is contained in:
nora 2025-10-29 22:13:20 +01:00
parent c0cf3786f4
commit 94f3233c55
7 changed files with 292 additions and 220 deletions

View file

@ -21,8 +21,6 @@ fn main() {
registry.with(tree_layer).init();
unsafe {
uwuwind::set_personality_routine(personality_routine);
let exception = Box::into_raw(Box::new(Exception {
_uwe: uw::_Unwind_Exception {
exception_class: 123456,
@ -36,13 +34,3 @@ fn main() {
uwuwind::_UnwindRaiseException(exception.cast::<uw::_Unwind_Exception>());
}
}
fn personality_routine(
_version: i32,
_actions: uw::_UnwindAction,
_exception_class: u64,
_exception_object: *mut uw::_Unwind_Exception,
_context: *mut uw::_Unwind_Context,
) -> uw::_Unwind_Reason_Code {
uw::_Unwind_Reason_Code::_URC_NO_REASON
}