File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -630,10 +630,15 @@ pub mod cap {
630
630
631
631
/// Auto-implemented for `#[godot_api] impl XyVirtual for MyClass` blocks
632
632
pub trait ImplementsGodotVirtual : GodotClass {
633
+ // Cannot use #[cfg(since_api = "4.4")] on the `hash` parameter, because the doc-postprocessing generates #[doc(cfg)],
634
+ // which isn't valid in parameter position.
635
+
636
+ #[ cfg( before_api = "4.4" ) ]
637
+ #[ doc( hidden) ]
638
+ fn __virtual_call ( name : & str ) -> sys:: GDExtensionClassCallVirtual ;
639
+
640
+ #[ cfg( since_api = "4.4" ) ]
633
641
#[ doc( hidden) ]
634
- fn __virtual_call (
635
- name : & str ,
636
- #[ cfg( since_api = "4.4" ) ] hash : u32 ,
637
- ) -> sys:: GDExtensionClassCallVirtual ;
642
+ fn __virtual_call ( name : & str , hash : u32 ) -> sys:: GDExtensionClassCallVirtual ;
638
643
}
639
644
}
You can’t perform that action at this time.
0 commit comments