build.Compile.Macro


This property sets or refers to the compile options for the active project regarding defined macros.

[Specification format]

build.Compile.Macro = macrolist

[Setting(s)]

Setting

Description

macrolist

Set the defined macros as a list of strings.

[Reference]

List of defined macros

[Detailed description]

-

This property sets or refers to the compile options for the active project regarding defined macros.

-

Add or change for the referred list to change the setting.

[Example of use]

>>>macrolist = build.Compile.Macro    ... Refer the current setting and add a defined macro
>>>print macrolist
['RL78']
>>>macrolist.append('78K')
>>>build.Compile.Macro = macrolist
>>>print build.Compile.Macro
['RL78', '78K']
>>>
>>>macrolist = ['macro1', 'macro2']   ... Set multiple defined macros
>>>build.Compile.Macro = macrolist
>>>print build.Compile.Macro
['macro1', 'macro2']