Skip to content

Commit

Permalink
Add print! and println! macros. Closes #7653.
Browse files Browse the repository at this point in the history
  • Loading branch information
poiru committed Jul 13, 2013
1 parent a9eb868 commit 948334f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/libsyntax/ext/expand.rs
Expand Up @@ -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),+));
} )
)
}";
}
Expand Down

9 comments on commit 948334f

@bors
Copy link
Contributor

@bors bors commented on 948334f Jul 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from huonw
at poiru@948334f

@bors
Copy link
Contributor

@bors bors commented on 948334f Jul 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging poiru/rust/issue-7653 = 948334f into auto

@bors
Copy link
Contributor

@bors bors commented on 948334f Jul 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

poiru/rust/issue-7653 = 948334f merged ok, testing candidate = 86a14d57

@bors
Copy link
Contributor

@bors bors commented on 948334f Jul 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from huonw
at poiru@948334f

@bors
Copy link
Contributor

@bors bors commented on 948334f Jul 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging poiru/rust/issue-7653 = 948334f into auto

@bors
Copy link
Contributor

@bors bors commented on 948334f Jul 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

poiru/rust/issue-7653 = 948334f merged ok, testing candidate = 48bfb90

@bors
Copy link
Contributor

@bors bors commented on 948334f Jul 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 48bfb90

Please sign in to comment.