Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/memchr/src/macros.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / memchr / src / macros.rs` 20 lines ยท 423 bytes Raw Blame History 1 // Some feature combinations result in some of these macros never being used. 2 // Which is fine. Just squash the warnings. 3 #![allow(unused_macros)] 4 5 macro_rules! log { 6 ($($tt:tt)*) => { 7 #[cfg(feature = "logging")] 8 { 9 $($tt)* 10 } 11 } 12 } 13 14 macro_rules! debug { 15 ($($tt:tt)*) => { log!(log::debug!($($tt)*)) } 16 } 17 18 macro_rules! trace { 19 ($($tt:tt)*) => { log!(log::trace!($($tt)*)) } 20 }