Macro dlib::ffi_dispatch_static[][src]

macro_rules! ffi_dispatch_static {
    (feature=$feature: expr, $handle: ident, $name: ident) => { ... };
    ($handle:ident, $name: ident) => { ... };
}

Macro for generically accessing a FFI static

The expected arguments are, in order:

The macro invocation evaluates to a &T reference to the static

Example

let my_static = unsafe { ffi_dispatch!(feature="dlopen", LIBRARY_HANDLE, my_static) };