Skip to content

Commit

Permalink
Add inline(never) to acquire and release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Nov 14, 2020
1 parent e895630 commit d5f003e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub fn acquire() -> bool {
}

#[cfg(not(target_arch = "x86_64"))]
#[inline(never)]
pub fn acquire() -> bool {
extern "Rust" {
fn _defmt_acquire() -> bool;
Expand All @@ -47,6 +48,7 @@ pub fn acquire() -> bool {
pub fn release() {}

#[cfg(not(target_arch = "x86_64"))]
#[inline(never)]
pub fn release() {
extern "Rust" {
fn _defmt_release();
Expand Down

0 comments on commit d5f003e

Please sign in to comment.