mirror of
https://github.com/fluencelabs/aquavm
synced 2025-05-02 02:32:14 +00:00
15 lines
428 B
Rust
15 lines
428 B
Rust
|
// We only use our own error type; no need for From conversions provided by the
|
||
|
// standard library's try! macro. This reduces lines of LLVM IR by 4%.
|
||
|
macro_rules! tri {
|
||
|
($e:expr $(,)?) => {
|
||
|
match $e {
|
||
|
core::result::Result::Ok(val) => val,
|
||
|
core::result::Result::Err(err) => return core::result::Result::Err(err),
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
mod value;
|
||
|
|
||
|
pub type Map<K, V> = indexmap::IndexMap<K, V>;
|