1 | #[doc(hidden)] |
---|---|
2 | #[macro_export] |
3 | macro_rules! check_status_or_throw { |
4 | ($env:expr, $code:expr, $($msg:tt)*) => { |
5 | if let Err(e) = $crate::check_status!($code, $($msg)*) { |
6 | #[allow(unused_unsafe)] |
7 | unsafe { $crate::JsError::from(e).throw_into($env) }; |
8 | } |
9 | }; |
10 | } |
11 |