beautypg.com

4 file-including directives, 1 inline directive, 2 include directive – Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual

Page 14: File-including directives, Inline directive, Include directive, 4file-including directives

background image

Teledyne LeCroy

Voyager USB 3.0 Exerciser Generation Script Language Reference Manual

5

4

File-Including Directives

To include a file in a generation parsing stream, use the %inline or %include directive.

4.1 Inline Directive

The %inline directive instructs the script parser to insert the content of the named file into the
parsing stream when the parser sees this directive, even if the file is already inserted.

Examples

%inline

"SomeInc1.inc"

# Includes the 'SomeInc1.inc' file.

%inline

"SomeInc1.inc"

# Includes the 'SomeInc1.inc' file again.

4.2 Include Directive

The %include directive instructs the script parser to insert the content of the named file into the
parsing stream only ONCE, the first time the parser sees the directive with the specified file
name.

Examples

%include

"SomeInc1.inc"

# Includes the 'SomeInc1.inc' file.

%include

"SomeInc1.inc"

# Does nothing.

Note:

For details on how the script parser resolves file names, see the

Include Path Directive

topic.