2023-05-28 04:51:51 -05:00
|
|
|
//! A module for small utilities to be used kernel wide
|
|
|
|
//! Simple functions and constants
|
|
|
|
|
|
|
|
/// Used when tab `\t` in hardware is not known and we will default to two spaces
|
2023-05-06 06:50:24 -05:00
|
|
|
pub const TAB: &str = " ";
|
2023-07-09 06:00:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
// NOTE: this only reduces the code duplication in source code not in generated code!
|
|
|
|
// Written by Yours Truly: Munir
|
|
|
|
/// A simple macro to reduce code duplication when we use TAB internally
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! tab {
|
|
|
|
($num:expr) => {
|
|
|
|
TAB.repeat($num)
|
|
|
|
}
|
|
|
|
}
|