#[cfg(not(feature = "antithesis"))]
#[macro_export]
macro_rules! turso_assert {
($cond:expr, $msg:literal, $($optional:tt)+) => {
assert!($cond, $msg, $($optional)+);
};
($cond:expr, $msg:literal) => {
assert!($cond, $msg);
};
}
#[cfg(feature = "antithesis")]
#[macro_export]
macro_rules! turso_assert {
($cond:expr, $msg:literal, $($optional:tt)+) => {
antithesis_sdk::assert_always_or_unreachable!($cond, $msg);
assert!($cond, $msg, $($optional)+);
};
($cond:expr, $msg:literal) => {
antithesis_sdk::assert_always_or_unreachable!($cond, $msg);
assert!($cond, $msg);
};
}