pelite 0.10.0

Lightweight, memory-safe, zero-allocation library for reading and navigating PE binaries.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*!

Allow the shared code to differentiate for which target it's being compiled.
*/

/// Macro expands its argument only if this target is 64-bit windows.
#[cfg(all(windows, target_pointer_width = "64"))]
macro_rules! current_target {
	($($tt:tt)*) => ($($tt)*);
}
#[cfg(not(all(windows, target_pointer_width = "64")))]
macro_rules! current_target {
	($($tt:tt)*) => ();
}

#[allow(unused_macros)]
macro_rules! branch {
	(pe32 $pe32:tt pe64 { $($pe64:tt)* }) => { $($pe64)* };
}