scope-exit 0.1.0

The util to call procedure when exit current scope. scope exit. like defer in go.
Documentation

Scope Exit utils

Will call closure when leave current scope. Useful to release some resource got from FFI.

e.g. Call c file API

fn test() {
    let fp = fopen("test.txt");
    scope_exit!(|| fclose(fp););
    // will call `fclose` by RAII
}