Skip to content

Commit

Permalink
Fix is_shutdown_requested fn signature
Browse files Browse the repository at this point in the history
  • Loading branch information
emesare authored Jul 28, 2024
1 parent 3615742 commit 9d73e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/src/headless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ pub fn shutdown() {
unsafe { binaryninjacore_sys::BNShutdown() };
}

pub fn is_shutdown_requested() {
unsafe { binaryninjacore_sys::BNIsShutdownRequested() };
pub fn is_shutdown_requested() -> bool {
unsafe { binaryninjacore_sys::BNIsShutdownRequested() }
}

/// Prelued-postlued helper function (calls [`init`] and [`shutdown`] for you)
Expand Down

0 comments on commit 9d73e9d

Please sign in to comment.