Sha256: 49b96296049706fbae23db48692ab178870cc5979a3bf19b859d3949b9d5f904

Contents?: true

Size: 758 Bytes

Versions: 38

Compression:

Stored size: 758 Bytes

Contents

/// Provide a convenient way to access ittapi functions that may have not been initialized. The
/// `ittnotify` library has a static part (e.g., `libittnotify.a`) and a dynamic part (e.g.,
/// `libittnotify_collector.so`, VTune Profiler). The static part provides the ITT symbols to the
/// application but these may not be resolved to actual implementations in the dynamic part--the
/// data collector.
macro_rules! access_sys_fn {
    ($fn_name: ident) => {
        unsafe {
            ittapi_sys::$fn_name.expect(concat!(
                "unable to access the ittapi function: ",
                stringify!($fn_name)
            ))
        }
    };
}

// This allows the macro to be used internally without being published.
pub(crate) use access_sys_fn;

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
wasmtime-14.0.3 ./ext/cargo-vendor/ittapi-0.3.5/src/util.rs
wasmtime-14.0.1 ./ext/cargo-vendor/ittapi-0.3.5/src/util.rs
wasmtime-14.0.0 ./ext/cargo-vendor/ittapi-0.3.5/src/util.rs
wasmtime-13.0.0 ./ext/cargo-vendor/ittapi-0.3.4/src/util.rs
wasmtime-12.0.1 ./ext/cargo-vendor/ittapi-0.3.4/src/util.rs
wasmtime-12.0.0 ./ext/cargo-vendor/ittapi-0.3.4/src/util.rs
wasmtime-11.0.0 ./ext/cargo-vendor/ittapi-0.3.4/src/util.rs
wasmtime-10.0.1 ./ext/cargo-vendor/ittapi-0.3.4/src/util.rs
wasmtime-10.0.0 ./ext/cargo-vendor/ittapi-0.3.4/src/util.rs
wasmtime-9.0.4 ./ext/cargo-vendor/ittapi-0.3.4/src/util.rs
wasmtime-9.0.1 ./ext/cargo-vendor/ittapi-0.3.3/src/util.rs
wasmtime-8.0.0 ./ext/cargo-vendor/ittapi-0.3.3/src/util.rs
wasmtime-7.0.0 ./ext/cargo-vendor/ittapi-0.3.3/src/util.rs
wasmtime-6.0.1 ./ext/cargo-vendor/ittapi-0.3.3/src/util.rs
wasmtime-6.0.0 ./ext/cargo-vendor/ittapi-0.3.3/src/util.rs
wasmtime-5.0.0 ./ext/cargo-vendor/ittapi-0.3.3/src/util.rs
wasmtime-0.4.1 ./ext/cargo-vendor/ittapi-0.3.2/src/util.rs
wasmtime-0.4.0 ./ext/cargo-vendor/ittapi-0.3.2/src/util.rs