Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/dbghelp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,6 @@ macro_rules! dbghelp {
// either read the cached function pointer or load it and return the
// loaded value. Loads are asserted to succeed.
$(pub fn $name(&mut self) -> Option<$name> {
// Assert that windows_sys::$name is declared to have the same
// argument types and return type as our declaration, although
// it might be either extern "C" or extern "system".
cfg_if::cfg_if! {
if #[cfg(any(target_arch = "x86", not(windows_raw_dylib)))] {
let _: unsafe extern "system" fn($($argty),*) -> $ret = super::windows_sys::$name;
} else {
let _: unsafe extern "C" fn($($argty),*) -> $ret = super::windows_sys::$name;
}
}

unsafe {
if self.$name == 0 {
let name = concat!(stringify!($name), "\0");
Expand Down
Loading