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

loadTopContextForms

loadTopContextForms( 
t_FileName 
[ ?debugMode g_debugMode ] 
[ ?writeProtect g_writeProtect ] 
[ ?writeProtectAll g_writeProtectAll ] 
[ ?lazyComp g_lazyComp ] 
[ ?printinfix g_printinfix ] 
[ ?integermode g_integermode ] 
[ ?mergemode g_mergemode ] 
[ ?readProtect g_readProtect ] 
) 
=> t / nil

Description

Loads top-level SKILL or Scheme forms from a file. If the setContext mode is set, these forms are saved in a context. After the context is loaded, these forms are evaluated at the top-level, as if these were loaded from an .il or .ils file.

Arguments

t_FileName

Name of the context file you want to load.

?debugMode g_debugMode

Sets debug mode

?writeProtect g_writeProtect

Sets write protect

Default value: t

?writeProtectAll g_wirteProtectAll

Sets write protect all

Default value: t

?lazyComp g_lazyComp

Sets the lazy compilation status

?printinfix g_printinfix

Sets the printinfix status

Default value: t

?integermode g_integermode

Sets the integer mode

?mergemode g_mergemode

Sets the merge mode

Default value: t

?readProtect g_readProtect

Sets the read protect mode

Default value: t

Value Returned

t

When the file is loaded successfully.

nil

When the file is not loaded.

Examples

setContext("testc.cxt")
loadTopContextForms("./testFile.il")
saveContext("testc.cxt")

Related Topics

Context Functions

saveContext

setContext


Return to top
 ⠀
X