Skip to content

Commit

Permalink
macro hygiene fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Jun 26, 2024
1 parent 33f40c3 commit 7a7a0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion define-syscall/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ macro_rules! define_syscall {
// this enum is used to force the hash to be computed in a const context
#[repr(usize)]
enum Syscall {
Code = sys_hash(stringify!($name)),
Code = $crate::sys_hash(stringify!($name)),
}

let syscall: extern "C" fn($($arg: $typ),*) -> $ret = core::mem::transmute(Syscall::Code);
Expand Down

0 comments on commit 7a7a0e1

Please sign in to comment.