Skip to content

Commit

Permalink
Added: Reaper::is_available
Browse files Browse the repository at this point in the history
  • Loading branch information
Levitanus committed Jan 15, 2023
1 parent cbcd794 commit 083feb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rea-rs/src/reaper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ impl Reaper {
self.low.plugin_context().clone()
}

pub fn is_available() -> bool {
unsafe { INSTANCE.is_some() }
}
/// Gives access to the instance which you made available globally before.
///
/// # Panics
Expand Down

0 comments on commit 083feb3

Please sign in to comment.