Add print! and println! macros. Closes #7653.
This commit is contained in:
parent
a9eb868230
commit
948334f333
1 changed files with 12 additions and 0 deletions
|
@ -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),+));
|
||||
} )
|
||||
)
|
||||
}";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue