Hpmason / retour-rs

A cross-platform detour library written in Rust
Other
99 stars 18 forks source link

`static_detour` needs to be imported #29

Closed Kyuuhachi closed 11 months ago

Kyuuhachi commented 11 months ago

You have to use retour::static_detour;, you can't just do retour::static_detour! {}.

Hpmason commented 11 months ago

I actually noticed this bug while working on the c_variadics issue. https://github.com/Hpmason/retour-rs/blob/8dca3f2aa0ff3e4da486a6099e2c61e2c1c47c1b/src/macros.rs#L39-L41

I'm pretty sure I just need to replace all static_detour!(...) with $crate::static_detour!(...). I'll put in a fix shortly

Hpmason commented 11 months ago

I just pushed v0.3.1 to crates.io, so you should be able to use that now.