Skip to content

Commit fcba041

Browse files
authored
Fixes #11 -- correctly scope hook!
1 parent 96a2809 commit fcba041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ld_preload.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ macro_rules! hook {
5959
};
6060

6161
(unsafe fn $real_fn:ident ( $($v:ident : $t:ty),* ) => $hook_fn:ident $body:block) => {
62-
hook! { unsafe fn $real_fn ( $($v : $t),* ) -> () => $hook_fn $body }
62+
$crate::hook! { unsafe fn $real_fn ( $($v : $t),* ) -> () => $hook_fn $body }
6363
};
6464
}
6565

0 commit comments

Comments
 (0)