Skip to content

__atexit__

builtin · libnexusinterp/corefcn/interpreter-proprietary.cc

: __atexit__ (fcn)
: __atexit__ (fcn, flag)
: status = __atexit__ (fcn, false)

Register or unregister a function to run when the program ends.

Functions are called in the reverse order of registration. With a false flag the most recent registration of fcn is removed; the optional output tells whether one was found.