diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-20 23:32:30 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-20 23:32:30 +0100 |
| commit | ddada4509729b0b8dcc394737d7eec588df51040 (patch) | |
| tree | 828a84eea9488f14878bf0ca16ee121e20a9de29 /macros | |
| parent | 46d469f4bee6afd6b0d7dfdb3f095b98b18ac5f9 (diff) | |
Tracepoints for show rules
Diffstat (limited to 'macros')
| -rw-r--r-- | macros/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs index eaa929dc..7e2caae5 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -109,6 +109,8 @@ fn expand_node( } }; + let name = self_name.trim_end_matches("Node").to_lowercase(); + // Put everything into a module with a hopefully unique type to isolate // it from the outside. Ok(quote! { @@ -131,6 +133,10 @@ fn expand_node( model::NodeId::of::<Self>() } + fn name(&self) -> &'static str { + #name + } + #vtable } |
