Home GnuPG

gpgscm: Implement 'atexit'.

Description

gpgscm: Implement 'atexit'.

* tests/gpgscm/ffi.scm (throw): Run *run-atexit-handlers* when
terminating the interpreter.
(*atexit-handlers*): New variable.
(*run-atexit-handlers*): New function.
(atexit): Likewise.
* tests/gpgscm/main.c (main): Run *run-atexit-handlers* at normal
interpreter shutdown.
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Nov 4 2016, 12:08 PM
Parents
rEe4a694eb48a0: gpgscm,tests: Add new functions to the test environment.
Branches
Unknown
Tags
Unknown