SUMMARY: MODULE | CLASS | TYPE | PROC | VAR | CONST | DETAIL: TYPE | PROC | VAR | CONST |
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 |
TYPE Proc = ()
Procedure Detail |
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.
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.