beautypg.com

Defines, Delete config, Examine (?) for expressions – Zilog ZUSBOPTS User Manual

Page 398: Defines delete config examine (?) for expressions

background image

Supported Script File Commands

UM017105-0511

370

Zilog Developer Studio II – ZNEO™
User Manual

defines

The

defines

command provides a mechanism to add to, remove from, or replace define

strings in the compiler preprocessor defines and assembler defines options. This command
provides a more flexible method to modify the defines options than the

option

com-

mand, which requires that the entire defines string be set with each use. Each

defines

parameter is a string containing a single define symbol, such as

"TRACE"

or

"_SIMULATE=1"

. The

defines

command can take one of three forms:

defines add ""

adds the given define

to the compiler or assembler defines, as indicated by the first parameter.

defines replace "" "

define>"

replaces <old define> with <new define> for the compiler or assembler

defines, as indicated by the first parameter. If <old define> is not found, no change is
made.

defines remove ""

removes the given define from the compiler or assembler defines, as indicated by the
first parameter.

For example:

defines compiler add "_TRACE"

defines assembler add "_TRACE=1"

defines assembler replace "_TRACE" "_NOTRACE"

defines assembler replace "_TRACE=1" "_TRACE=0"

defines compiler remove "_NOTRACE"

delete config

The

delete config

command deletes the given existing project build configuration.

The following example presents the syntax of the

delete config

command:

delete config "<config_name>"

If <config_name> is active, the first remaining build configuration, if any, is made active.
If <config_name> does not exist, no action is taken.

For example:

delete config "MyDebug"

examine (?) for Expressions

The examine command evaluates the given expression and displays the result. It accepts
any legal expression made up of constants, program variables, and C operators. The syn-
tax takes the following form:

This manual is related to the following products: