1
Fork 0

Add print! and println! macros. Closes #7653.

This commit is contained in:
Birunthan Mohanathas 2013-07-13 16:30:31 +03:00
parent a9eb868230
commit 948334f333

View file

@ -643,6 +643,18 @@ pub fn core_macros() -> @str {
$(if $pred $body)else+
);
)
macro_rules! print(
($( $arg:expr),+) => ( {
print(fmt!($($arg),+));
} )
)
macro_rules! println(
($( $arg:expr),+) => ( {
println(fmt!($($arg),+));
} )
)
}";
}