Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

regExitBefore

regExitBefore( 
s_name 
) 
=> t

Description

Registers the action to be taken before the exit function is executed. If the function registered returns the ignoreExit symbol, the exit is aborted.

Arguments

s_name

Name of the function that is to be added to the head of the list of functions to be executed before the exit function.

Value Returned

t

The function registered returns the ignoreExit symbol and aborts exit.

Examples

procedure( foo() println( "Aborting exit") 'ignoreExit) 
=> foo
regExitBefore('foo)
=> t
exit ;Does not exit.
"Aborting exit"
procedure( foo() println( "Exiting")) => foo exit   ;Exits program.
"Exiting"

Related Topics

Flow Control Functions

clearExitProcs

exit

regExitBefore

remExitProc


Return to top
 ⠀
X