Skip to content

Commit

Permalink
Merge pull request #383 from hacspec/franziskus/properly-disable-debu…
Browse files Browse the repository at this point in the history
…g-asserts-in-lib

disable debug asserts in lib
  • Loading branch information
W95Psp authored Dec 6, 2023
2 parents 156f523 + 3e53dc8 commit fea5dbc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hax-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ macro_rules! proxy_macro_if_not_hax {
$f($cond)
};
}

#[cfg(not(debug_assertions))]
#[doc(hidden)]
#[cfg(not(hax))]
#[macro_export]
macro_rules! proxy_macro_if_not_hax {
($macro:path, $f:expr, $($arg:tt)*) => {};
}

#[cfg(debug_assertions)]
#[doc(hidden)]
#[cfg(not(hax))]
#[macro_export]
Expand Down

0 comments on commit fea5dbc

Please sign in to comment.