beautypg.com

15 forward declarations, Forward declarations – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual

Page 99

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

91

10.15 Forward Declarations

You can use declared items in generation procedures before their declarations.

Example

Main

{

# The frame template 'SOME_PKT_TEMPLATE' is declared later.

Send

SOME_PKT_TEMPLATE

{

Field0 =

0xAABBCCDD

}

Call

Block1()

# The procedure 'Block1' is declared later.

# Declare the 'SOME_PKT_TEMPLATE' frame template used above.

Frame

SOME_PKT_TEMPLATE

{

Field0 :

32

=

0xFEFEFEFE

}

}

# Declare the procedure 'Block1' used above.

Block1

{

Send

TX_FRAME

}