Skip to content

Commit

Permalink
remove cstr! macro (superseded in Rust 1.77)
Browse files Browse the repository at this point in the history
  • Loading branch information
lylythechosenone committed Dec 2, 2024
1 parent f748ad3 commit c223e3e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/modules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@ bitflags! {
}
}

/// Create a NUL-terminated C string from a string literal
#[macro_export]
macro_rules! cstr {
() => {
unsafe { core::ffi::CStr::from_bytes_with_nul_unchecked(b"\0") }
};
($s:expr) => {
unsafe { core::ffi::CStr::from_bytes_with_nul_unchecked(concat!($s, "\0").as_bytes()) }
};
}

/// An internal module that the kernel requests from the bootloader. Only
/// available with request revision 1 and greater.
#[repr(C)]
Expand Down

0 comments on commit c223e3e

Please sign in to comment.