macro_rules! xref_mut { ($e:expr) => { ... }; }
Expand description
Obfuscates the xref to data reference.
static mut FOO: i32 = 42;
let foo = obfstr::xref_mut!(unsafe { &mut FOO });
// When looking at the disassembly the reference to `FOO` has been obfuscated.
assert_eq!(foo as *mut _, unsafe { &mut FOO } as *mut _);