From 365aa98e31266cfb32698a883a84e2e6d19c102d Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Wed, 25 Oct 2023 16:16:42 +0800 Subject: [PATCH] fix compile Signed-off-by: Ruihang Xia --- src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 5c4cb81..c72184c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -873,6 +873,15 @@ macro_rules! fail_point { ($name:expr, $cond:expr, $e:expr) => {{}}; } +/// Define an async fail point (disabled, see `failpoints` feature). +#[macro_export] +#[cfg(not(feature = "failpoints"))] +macro_rules! async_fail_point { + ($name:expr, $e:expr) => {{}}; + ($name:expr) => {{}}; + ($name:expr, $cond:expr, $e:expr) => {{}}; +} + #[cfg(test)] mod tests { use super::*;