mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Fix an error in nih_export_vst3 and a warning in nih_export_clap
This commit is contained in:
committed by
Robbert van der Helm
parent
5f4058d164
commit
bf59a9496b
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user