alef 0.21.1

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
if this.is_null() {
        set_last_error(1, "Null pointer passed for self");
        {{ fail_ret }}
    }
    // SAFETY: null check above guarantees this is a valid pointer originally from Box::into_raw.
    let obj = unsafe { *Box::from_raw(this) };