1
0
Fork 0

Fix an error in nih_export_vst3 and a warning in nih_export_clap

This commit is contained in:
Benno Straub 2023-11-25 20:18:27 +01:00 committed by Robbert van der Helm
parent 5f4058d164
commit bf59a9496b
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ macro_rules! nih_export_clap {
} }
unsafe extern "C" fn create_plugin ( unsafe extern "C" fn create_plugin (
factory: *const clap_plugin_factory, _factory: *const clap_plugin_factory,
host: *const clap_host, host: *const clap_host,
plugin_id: *const c_char, plugin_id: *const c_char,
) -> *const clap_plugin { ) -> *const clap_plugin {

View file

@ -59,7 +59,7 @@ macro_rules! nih_export_vst3 {
if cfg!(debug_assertions) { if cfg!(debug_assertions) {
let unique_cids: HashSet<[u8; 16]> = plugin_infos.iter().map(|d| *d.cid).collect(); 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(), unique_cids.len(),
plugin_infos.len(), plugin_infos.len(),
"Duplicate VST3 class IDs found in `nih_export_vst3!()` call" "Duplicate VST3 class IDs found in `nih_export_vst3!()` call"