mirror of
https://github.com/Noratrieb/uwuwind.git
synced 2026-01-15 00:55:06 +01:00
stuff
This commit is contained in:
parent
c0cf3786f4
commit
94f3233c55
7 changed files with 292 additions and 220 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue