retour\arch\x86\thunk/mod.rs
1#![allow(dead_code)]
2
3/// Implements x86 operations
4pub mod x86;
5
6/// Implements x64 operations
7#[cfg(target_arch = "x86_64")]
8pub mod x64;
9
10#[cfg(target_arch = "x86")]
11mod arch {
12 pub use super::x86::call_rel32 as call;
13 pub use super::x86::jcc_rel32 as jcc;
14 pub use super::x86::jmp_rel32 as jmp;
15}
16
17#[cfg(target_arch = "x86_64")]
18mod arch {
19 pub use super::x64::call_abs as call;
20 pub use super::x64::jcc_abs as jcc;
21 pub use super::x64::jmp_abs as jmp;
22}
23
24// Export the default architecture
25pub use self::arch::*;