Sha256: 36f3870655e3969793e10efc0151779b53eaf0a05c3477249d34ac53086f5d37

Contents?: true

Size: 426 Bytes

Versions: 35

Compression:

Stored size: 426 Bytes

Contents

/// A macro to define a new `Id` const for a given string.
#[macro_export]
macro_rules! define_rb_intern {
    ($($name:ident => $id:expr,)*) => {
        $(
            lazy_static::lazy_static! {
                /// Define a Ruby internal `Id`. Equivalent to `rb_intern("$name")`
                pub static ref $name: $crate::helpers::StaticId = $crate::helpers::StaticId::intern_str($id);
            }
        )*
    };
}

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
wasmtime-30.0.2 ext/src/helpers/macros.rs
wasmtime-29.0.0 ext/src/helpers/macros.rs
wasmtime-28.0.0 ext/src/helpers/macros.rs
wasmtime-27.0.0 ext/src/helpers/macros.rs
wasmtime-26.0.0 ext/src/helpers/macros.rs
wasmtime-25.0.2 ext/src/helpers/macros.rs
wasmtime-25.0.1 ext/src/helpers/macros.rs
wasmtime-25.0.0 ext/src/helpers/macros.rs
wasmtime-24.0.0 ext/src/helpers/macros.rs
wasmtime-23.0.2 ext/src/helpers/macros.rs
wasmtime-22.0.0 ext/src/helpers/macros.rs
wasmtime-21.0.1 ext/src/helpers/macros.rs
wasmtime-20.0.2 ext/src/helpers/macros.rs
wasmtime-20.0.0 ext/src/helpers/macros.rs
wasmtime-18.0.3 ext/src/helpers/macros.rs
wasmtime-17.0.1 ext/src/helpers/macros.rs
wasmtime-17.0.0 ext/src/helpers/macros.rs
wasmtime-16.0.0 ext/src/helpers/macros.rs
wasmtime-15.0.1 ext/src/helpers/macros.rs
wasmtime-15.0.0 ext/src/helpers/macros.rs