mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
Merge branch 'next/minor' of github.com:Start9Labs/start-os into next/major
This commit is contained in:
@@ -6,3 +6,20 @@ pub use tracing::instrument;
|
||||
pub use crate::db::prelude::*;
|
||||
pub use crate::ensure_code;
|
||||
pub use crate::error::{Error, ErrorCollection, ErrorKind, ResultExt};
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! dbg {
|
||||
() => {{
|
||||
tracing::debug!("[{}:{}:{}]", file!(), line!(), column!());
|
||||
}};
|
||||
($e:expr) => {{
|
||||
let e = $e;
|
||||
tracing::debug!("[{}:{}:{}] {} = {e:?}", file!(), line!(), column!(), stringify!($e));
|
||||
e
|
||||
}};
|
||||
($($e:expr),+) => {
|
||||
($(
|
||||
crate::dbg!($e)
|
||||
),+)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user