Skip to content
Snippets Groups Projects
Verified Commit 0159cc74 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

refactor: better macros impl

parent 949249d6
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
#[macro_export]
macro_rules! debugln {
($($rest:tt)*) => {
std::print!("[DEBUG] ");
std::println!($($rest)*)
}
}
......@@ -13,3 +14,13 @@ macro_rules! debugln {
()
};
}
#[macro_export]
macro_rules! warnln {
($($rest:tt)*) => {
{
std::print!("[WARNING] ");
std::println!($($rest)*);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment