Skip to content

Commit

Permalink
Fix an error in nih_export_vst3 and a warning in nih_export_clap
Browse files Browse the repository at this point in the history
  • Loading branch information
Cannedfood authored and robbert-vdh committed Dec 6, 2023
1 parent 5f4058d commit bf59a94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wrapper/clap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ macro_rules! nih_export_clap {
}

unsafe extern "C" fn create_plugin (
factory: *const clap_plugin_factory,
_factory: *const clap_plugin_factory,
host: *const clap_host,
plugin_id: *const c_char,
) -> *const clap_plugin {
Expand Down
2 changes: 1 addition & 1 deletion src/wrapper/vst3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ macro_rules! nih_export_vst3 {

if cfg!(debug_assertions) {
let unique_cids: HashSet<[u8; 16]> = plugin_infos.iter().map(|d| *d.cid).collect();
nih_debug_assert_eq!(
$crate::nih_debug_assert_eq!(
unique_cids.len(),
plugin_infos.len(),
"Duplicate VST3 class IDs found in `nih_export_vst3!()` call"
Expand Down

0 comments on commit bf59a94

Please sign in to comment.