This commit is contained in:
Sean McArthur
2014-09-06 14:45:29 -07:00
parent 1926e82369
commit eaa3cb46ee
4 changed files with 10 additions and 5 deletions

View File

@@ -28,6 +28,12 @@ macro_rules! try_io(
($e:expr) => (match $e { Ok(v) => v, Err(e) => return Err(::HttpIoError(e)) })
)
macro_rules! todo(
($($arg:tt)*) => (if cfg!(not(ndebug)) {
format_args!(|args| log!(5, "TODO: {}", args), $($arg)*)
})
)
#[allow(dead_code)]
struct Trace;