Expand description
Convert extern fn to libdl call procedural macro.
§Example
use lazylink::lazylink;
#[lazylink(fullname="libc.so.6")]
mod libc {
extern "C" {
// convert this function.
fn puts(v: *const std::os::raw::c_char);
}
}Attribute Macros§
- lazylink
- Convert extern fn to libdl function call.