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-29.0.0 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-28.0.0 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-27.0.0 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-26.0.0 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-25.0.2 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-25.0.1 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-25.0.0 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-24.0.0 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-23.0.2 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-22.0.0 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-21.0.1 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-20.0.2 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-20.0.0 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-18.0.3 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-17.0.1 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-17.0.0 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-16.0.0 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-15.0.1 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-15.0.0 ./ext/cargo-vendor/ittapi-0.4.0/src/util.rs
wasmtime-14.0.4 ./ext/cargo-vendor/ittapi-0.3.5/src/util.rs