Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static_detour needs to be imported #29

Closed
Kyuuhachi opened this issue Jul 17, 2023 · 2 comments · Fixed by #31
Closed

static_detour needs to be imported #29

Kyuuhachi opened this issue Jul 17, 2023 · 2 comments · Fixed by #31

Comments

@Kyuuhachi
Copy link

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

@Hpmason
Copy link
Owner

Hpmason commented Jul 18, 2023

I actually noticed this bug while working on the c_variadics issue.

retour-rs/src/macros.rs

Lines 39 to 41 in 8dca3f2

(@parse_attributes ($($input:tt)*) | #[$attribute:meta] $($rest:tt)*) => {
static_detour!(@parse_attributes ($($input)* $attribute) | $($rest)*);
};

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

@Hpmason
Copy link
Owner

Hpmason commented Jul 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants