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

defUserInitProc

defUserInitProc( 
t_contextName 
u_func 
[ autoInit ]
)
=> ( t_contextName s_procName )

Description

Registers a user-defined function that the system calls immediately after autoloading a context.

Lets you customize existing Cadence contexts. In the general case, most Cadence-supplied contexts have internally defined an initialization function through the defInitProc function. This function defines a second initialization function, called after the internal initialization function, thereby allowing you to customize on top of Cadence supplied contexts. This is best done in the .cdsinit file.

Arguments

t_contextName

Name of context file to load.

u_func

Function to be called when context file is loaded.

[autoInit]

Value Returned

((t_contextName s_procName))

Always returns an association list when set up. The function is not called at this point, but is called when the t_contextName context is loaded.

Examples

defUserInitProc( "myContext" 'initMyContext)
=> (("myContext" initMyContext))

Related Topics

Function and Program Structure

defInitProc

callInitProc


Return to top
 ⠀
X