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

defCapPrefixes

defCapPrefixes( 
s_context 
l_prefixList 
) 
=> t

Description

Specifies which prefixes are acceptable for a context’s global variables.

All global variables that do not start with the stated prefixes are reported as unrecognized global variables. The call to defCapPrefixes can be specified in the .skinit file, which must reside in either the user’s home directory or the your_install_dir/local directory.

We recommend that developers put the defCapPrefixes function call in the beginning of the startup.il file because if SKILL Lint sees this call while analyzing the context, it can determine the acceptable prefixes for the context being analyzed. If you want SKILL Lint to recognize the package prefixes when analyzing a file that contains defCapPrefixes, be sure to pass the s_context to SKILL Lint as the ?context.

Arguments

s_context

Context for which the package prefixes should apply.

l_prefixList

List of acceptable package prefixes for s_context. The first letter following the prefix must be a capital. If the prefixes have been specified for a context, many of the unrecognized global variables will probably be variables that the user forgot to declare as locals.

Value Returned

t

Always returns t.

Examples

Informs SKILL Lint to expect any global variables in myContext to start with my or _my and to report all other global variables. Thus myGlobalVariable is an example of a legal global variable inside myContext.

defCapPrefixes('myContext '(my))

Related Topics

Context Functions

loadContext


Return to top
 ⠀
X