about summary refs log tree commit diff
path: root/src/rt/rust_uv.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-10-31 17:51:26 -0700
committerbors <bors@rust-lang.org>2013-10-31 17:51:26 -0700
commitd04a58cf2d224f6e0ae69334f90a9013ae2ba35a (patch)
tree38456cf073d07e36a6c385dbc8dd5d275f4981ef /src/rt/rust_uv.cpp
parent23df6f9775eee7a59e98873ae168a199efb4d649 (diff)
parenta49e65c2edad450cabc0745e94e7c031c5d4f7f8 (diff)
downloadrust-d04a58cf2d224f6e0ae69334f90a9013ae2ba35a.tar.gz
rust-d04a58cf2d224f6e0ae69334f90a9013ae2ba35a.zip
auto merge of #9740 : alexcrichton/rust/concat, r=cmr
This extension can be used to concatenate string literals at compile time. C has
this useful ability when placing string literals lexically next to one another,
but this needs to be handled at the syntax extension level to recursively expand
macros.

The major use case for this is something like:

    macro_rules! mylog( ($fmt:expr $($arg:tt)*) => {
        error2!(concat!(file!(), ":", line!(), " - ", $fmt) $($arg)*);
    })

Where the mylog macro will automatically prepend the filename/line number to the
beginning of every log message.
Diffstat (limited to 'src/rt/rust_uv.cpp')
0 files changed, 0 insertions, 0 deletions