Register actions globally before main
This commit is contained in:
parent
80630cd4d9
commit
814e62050c
8 changed files with 33 additions and 169 deletions
|
@ -1,14 +1,14 @@
|
|||
// Input:
|
||||
//
|
||||
// struct Foo {}
|
||||
// struct FooBar {}
|
||||
|
||||
// Output:
|
||||
//
|
||||
// struct Foo {}
|
||||
// struct FooBar {}
|
||||
//
|
||||
// #[allow(non_snake_case)]
|
||||
// #[gpui2::ctor]
|
||||
// fn register_Foo_builder() {
|
||||
// fn register_foobar_builder() {
|
||||
// gpui2::register_action_builder::<Foo>()
|
||||
// }
|
||||
use proc_macro::TokenStream;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue