ds_decomp/util/
debug.rs

1#[macro_export]
2macro_rules! function {
3    () => {{
4        fn f() {}
5        fn type_name_of<T>(_: T) -> &'static str {
6            std::any::type_name::<T>()
7        }
8        let name = type_name_of(f);
9        name.strip_suffix("::f").unwrap()
10    }};
11}