pub fn make_available_globally(reaper: Reaper<MainThreadScope>) {
        static INIT_INSTANCE: std::sync::Once = std::sync::Once::new();
        unsafe {
            INIT_INSTANCE.call_once(|| {
                INSTANCE = Some(reaper);
                register_plugin_destroy_hook(|| INSTANCE = None);
            });
        }
    }
/// Makes the given instance available globally.
///
/// After this has been called, the instance can be queried globally using `get()`.
///
/// This can be called once only. Subsequent calls won't have any effect!
Makes the given instance available globally.
After this has been called, the instance can be queried globally using `get()`.

This can be called once only. Subsequent calls won't have any effect!
Makes the given instance available globally . After this has been called the instance can be queried globally using ` get () ` . This can be called once only . Subsequent calls won ' t have any effect!
pub fn make_available_globally(reaper: Reaper<MainThreadScope>) {
        static INIT_INSTANCE: std::sync::Once = std::sync::Once::new();
        unsafe {
            INIT_INSTANCE.call_once(|| {
                INSTANCE = Some(reaper);
                register_plugin_destroy_hook(|| INSTANCE = None);
            });
        }
    }
pub fn make_available_globally ( reaper : Reaper < MainThreadScope > ) { static INIT_INSTANCE : std :: sync :: Once = std :: sync :: Once :: new ( ) ; unsafe { INIT_INSTANCE . call_once ( | | { INSTANCE = Some ( reaper ) ; register_plugin_destroy_hook ( | | INSTANCE = None ) ; } ) ; } }
Makes the given instance available globally.
Makes the given instance available globally .
reaper
Reaper<MainThreadScope>
reaper
Reaper<MainThreadScope>