call_with_cleanup: Call a native routine within an exit context

Description Usage Arguments C API See Also

View source: R/cleancall.R

Description

C functions called this way can call the r_call_on_exit() and/or r_call_on_early_exit() functions to establish exit handlers.

Usage

1

Arguments

ptr

A native pointer object.

...

Arguments for the native routine.

Handlers installed via r_call_on_exit() are always executed on exit. Handlers installed via r_call_on_early_exit() are only executed on early exit, i.e. not on normal termination.

C API

See Also

The package README file.


cleancall documentation built on Jan. 29, 2020, 5:09 p.m.