]> git.lizzy.rs Git - rust.git/commit
Add a macro to check if logging at a given label is enabled
authorPhilipp Brüschweiler <blei42@gmail.com>
Mon, 2 Dec 2013 20:47:57 +0000 (21:47 +0100)
committerPhilipp Brüschweiler <blei42@gmail.com>
Mon, 2 Dec 2013 20:47:57 +0000 (21:47 +0100)
commita75f72d45a1c1399adab0e123acdb76582a360ae
tree5f99ea6941e8bebb6b7950f4b0adec6edc392faf
parent61443dc1f5089df637edba83587b9f3020063266
Add a macro to check if logging at a given label is enabled

This is useful when the information that is needed to do useful logging
is expensive to produce.
src/libstd/logging.rs
src/libsyntax/ext/expand.rs
src/test/run-pass/logging-enabled.rs [new file with mode: 0644]