Product Documentation
Cadence SKILL Development Reference
Product Version IC23.1, June 2023

defInitProc

defInitProc( 
t_contextName 
s_procName 
) 
=> t

Description

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

When a context is autoloaded, it is given a chance to perform initialization before control returns to top level. It is during such an initialization that session-dependent objects like ports can be regenerated. This function permits a predefined function s_procName to be called whenever the context t_contextName is loaded.

Arguments

t_contextName

Primary name of the context file created using saveContext.

s_procName

Predefined function to be called when t_contextName is loaded.

Value Returned

t

Always returns t when set up. The function is not called at this point, but is called when the context t_contextName is autoloaded.

Examples

defInitProc("myContext" 'myInit)
=> t

Related Topics

Context Functions

defCapPrefixes

defCapDepends

setContext


Return to top
 ⠀
X