Defines, Delete config, Defines delete config – Zilog Z8F0130 User Manual

Page 525

Advertising
background image

UM013037-1212

defines

Zilog Developer Studio II – Z8 Encore!

User Manual

501

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 <compiler|assembler> add "<new define>"

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

defines <compiler|assembler> replace "<new define>" "<old

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 <compiler|assembler> remove "<define to be removed>"

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 syntax of the

delete config

command is:

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"

Advertising