1
0
Fork 0

Re-export all macros in the prelude

Now you don't need the `#[macro_use] extern crate nih_plug;` anymore
This commit is contained in:
Robbert van der Helm 2022-03-04 12:01:47 +01:00
parent 943149aaee
commit d758dd652f
5 changed files with 9 additions and 13 deletions

View file

@ -16,9 +16,6 @@
#![cfg_attr(feature = "simd", feature(portable_simd))]
#[macro_use]
extern crate nih_plug;
use nih_plug::prelude::*;
use std::pin::Pin;
use std::sync::atomic::{AtomicBool, Ordering};

View file

@ -1,6 +1,3 @@
#[macro_use]
extern crate nih_plug;
use atomic_float::AtomicF32;
use nih_plug::prelude::*;
use nih_plug_egui::{create_egui_editor, egui, widgets, EguiState};

View file

@ -1,6 +1,3 @@
#[macro_use]
extern crate nih_plug;
use nih_plug::prelude::*;
use parking_lot::RwLock;
use std::pin::Pin;

View file

@ -1,6 +1,3 @@
#[macro_use]
extern crate nih_plug;
use nih_plug::prelude::*;
use std::f32::consts;
use std::pin::Pin;

View file

@ -1,7 +1,15 @@
// Re-export the proc macro
pub use nih_plug_derive::Params;
pub use super::debug::*;
// And the other macros
pub use super::nih_debug_assert;
pub use super::nih_debug_assert_eq;
pub use super::nih_debug_assert_failure;
pub use super::nih_debug_assert_ne;
pub use super::nih_export_clap;
pub use super::nih_export_vst3;
pub use super::nih_log;
pub use super::formatters;
pub use super::util;