mirror of
https://github.com/Noratrieb/uwuwind.git
synced 2026-01-14 08:35:09 +01:00
add samples
This commit is contained in:
parent
2e191506ff
commit
f4e764eaf3
1 changed files with 0 additions and 9 deletions
|
|
@ -1,19 +1,12 @@
|
||||||
use uwuwind::uw;
|
use uwuwind::uw;
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
struct Exception {
|
struct Exception {
|
||||||
_uwe: uw::_Unwind_Exception,
|
_uwe: uw::_Unwind_Exception,
|
||||||
uwu: &'static str,
|
uwu: &'static str,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let eh_frame = std::fs::read("eh_frame.bin").expect("could not find ./eh_frame.bin");
|
|
||||||
unsafe {
|
|
||||||
uwuwind::dwarf::uwutables(eh_frame.as_ptr());
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
/*
|
|
||||||
unsafe {
|
unsafe {
|
||||||
uwuwind::set_personality_routine(personality_routine);
|
uwuwind::set_personality_routine(personality_routine);
|
||||||
|
|
||||||
|
|
@ -29,10 +22,8 @@ fn main() {
|
||||||
|
|
||||||
uwuwind::_UnwindRaiseException(exception.cast::<uw::_Unwind_Exception>());
|
uwuwind::_UnwindRaiseException(exception.cast::<uw::_Unwind_Exception>());
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
fn personality_routine(
|
fn personality_routine(
|
||||||
_version: i32,
|
_version: i32,
|
||||||
_actions: uw::_UnwindAction,
|
_actions: uw::_UnwindAction,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue