@ -84,7 +84,6 @@ pub fn sclog(level: Level, file: &str, line: u32, function: &str,
// This macro has been borrowed from https://github.com/popzxc/stdext-rs, which
// This macro has been borrowed from https://github.com/popzxc/stdext-rs, which
// is released under the MIT license as there is currently no macro in Rust
// is released under the MIT license as there is currently no macro in Rust
// to provide the function name.
// to provide the function name.
#[ cfg(feature = " function-macro " ) ]
#[ macro_export(local_inner_macros) ]
#[ macro_export(local_inner_macros) ]
macro_rules! function {
macro_rules! function {
( ) = > { {
( ) = > { {
@ -98,14 +97,6 @@ macro_rules!function {
} }
} }
}
}
// Rust versions less than 1.38 can not use the above macro, so keep the old
// macro around for a while.
#[ cfg(not(feature = " function-macro " )) ]
#[ macro_export(local_inner_macros) ]
macro_rules! function {
( ) = > { { "<rust>" } }
}
#[ macro_export ]
#[ macro_export ]
macro_rules! do_log {
macro_rules! do_log {
( $level :expr , $code :expr , $( $arg :tt ) * ) = > {
( $level :expr , $code :expr , $( $arg :tt ) * ) = > {