pelite/pe32/
macros.rs

1/*!
2Allow the shared code to differentiate for which target it's being compiled.
3*/
4
5/// Macro expands its argument only if this target is 32-bit windows.
6#[cfg(all(windows, target_pointer_width = "32"))]
7macro_rules! current_target {
8	($($tt:tt)*) => ($($tt)*);
9}
10#[cfg(not(all(windows, target_pointer_width = "32")))]
11macro_rules! current_target {
12	($($tt:tt)*) => ();
13}
14
15#[allow(unused_macros)]
16macro_rules! branch {
17	(pe32 { $($pe32:tt)* } pe64 $pe64:tt) => { $($pe32)* };
18}