macro_rules! func_name { () => { ... }; }
Get the name of the function where the macro is invoked. Returns a &'static str.
&'static str
use fastrace::func_name; fn foo() { assert_eq!(func_name!(), "foo"); }