]> git.proxmox.com Git - cargo.git/blob - vendor/backtrace/src/backtrace/noop.rs
New upstream version 0.37.0
[cargo.git] / vendor / backtrace / src / backtrace / noop.rs
1 //! Empty implementation of unwinding used when no other implementation is
2 //! appropriate.
3
4 use core::ffi::c_void;
5
6 #[inline(always)]
7 pub fn trace(_cb: &mut FnMut(&super::Frame) -> bool) {}
8
9 #[derive(Clone)]
10 pub struct Frame;
11
12 impl Frame {
13 pub fn ip(&self) -> *mut c_void {
14 0 as *mut _
15 }
16
17 pub fn symbol_address(&self) -> *mut c_void {
18 0 as *mut _
19 }
20 }