Add an empty branch to println!() macro to be consistent with std (#423)

This commit is contained in:
SomeAnotherDude
2018-03-31 11:44:59 +03:00
committed by Philipp Oppermann
parent 5f195a869c
commit e1338bb53e
2 changed files with 6 additions and 2 deletions

View File

@@ -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)*));
}