Sha256: 3af0ceb74b15600c40d350f82ee2d57d893ebf32e42b57bd3ec7edf25c23ad80
Contents?: true
Size: 913 Bytes
Versions: 2
Compression:
Stored size: 913 Bytes
Contents
//! Integation with wasm-wave: string representations of values and types #[cfg(feature = "component-model")] mod component; mod core; macro_rules! unwrap_val { ($val:expr, $case:path, $name:expr) => { match $val { $case(v) => v, _ => panic!("called unwrap_{name} on non-{name} value", name = $name), } }; } macro_rules! unwrap_2val { ($val:expr, $case:path, $name:expr) => { match $val { $case(n, v) => (n, v), _ => panic!("called unwrap_{name} on non-{name} value", name = $name), } }; } pub(crate) use unwrap_2val; pub(crate) use unwrap_val; #[inline] pub(crate) fn canonicalize_nan32(val: f32) -> f32 { if val.is_nan() { f32::NAN } else { val } } #[inline] pub(crate) fn canonicalize_nan64(val: f64) -> f64 { if val.is_nan() { f64::NAN } else { val } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wasmtime-29.0.0 | ./ext/cargo-vendor/wasmtime-29.0.0/src/runtime/wave.rs |
wasmtime-28.0.0 | ./ext/cargo-vendor/wasmtime-28.0.0/src/runtime/wave.rs |