lighthouse-pulse/eth2/state_processing/src/macros.rs

14 lines
261 B
Rust
Raw Normal View History

macro_rules! verify {
($condition: expr, $result: expr) => {
if !$condition {
return Err(Error::Invalid($result));
}
};
}
macro_rules! invalid {
($result: expr) => {
return Err(Error::Invalid($result));
};
}