Skip to content

Commit

Permalink
Adapt interface ordering issue to single component implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
MirkoCovizzi committed Apr 27, 2020
1 parent b2ffafc commit 6c895df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions com/macros/support/src/utils/idents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ pub fn base_interface_idents(attr_args: &AttributeArgs) -> Vec<Ident> {
format_ident!("IComponent"),
"IComponent should always be first."
);
}

if base_interface_idents.contains(&format_ident!("IEditController")) {
} else if base_interface_idents.contains(&format_ident!("IEditController")) {
assert_eq!(
base_interface_idents[0],
format_ident!("IEditController"),
Expand Down
1 change: 1 addition & 0 deletions examples/passthru.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ unsafe fn wstrcpy(src: &str, dst: *mut c_short) {
}

#[VST3(implements(
IComponent,
IEditController,
IAudioProcessor,
IAutomationState,
Expand Down

0 comments on commit 6c895df

Please sign in to comment.