mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Add an empty branch to println!() macro to be consistent with std (#423)
This commit is contained in:
committed by
Philipp Oppermann
parent
5f195a869c
commit
e1338bb53e
@@ -149,6 +149,7 @@ macro_rules! print {
|
||||
|
||||
/// Like the `print!` macro in the standard library, but prints to the VGA text buffer.
|
||||
macro_rules! println {
|
||||
() => (print!("\n"));
|
||||
($fmt:expr) => (print!(concat!($fmt, "\n")));
|
||||
($fmt:expr, $($arg:tt)*) => (print!(concat!($fmt, "\n"), $($arg)*));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user