Termination

Type Summary
Proc = ()

          
Procedure Summary
RegisterProc(Proc)

          Adds proc to the list of procedures executed at program termination.
UnregisterProc(Proc)

          Removes proc from the list of procedures executed at program termination.

Type Detail

Proc

TYPE Proc = ()
Procedure Detail

RegisterProc

PROCEDURE RegisterProc(proc: Proc)

Adds proc to the list of procedures executed at program termination. The registered procedures will be called on normal program termination, if an error signal is raised, or if an termination signal is raised. They are called in reverse order of registration.


UnregisterProc

PROCEDURE UnregisterProc(proc: Proc)

Removes proc from the list of procedures executed at program termination. The last procedure equal to proc is removed. Nothing is done if proc has not been registered before.