This is a nested element which can be used in the compile task to specify defined identifiers
in the preprocessor.
Attribute | Description | Required |
---|---|---|
name | The name of the identifier to define. |
Yes. |
value |
The value to set it to. If it
isn't set to anything, it will correspond to a simple: #define name |
No. |
This will compile the file Hello.cpp with the preprocessor identifier DEBUG_TRACE set to 1.<compile objdir="tmp/obj"> <srcfiles dir="source" includes="Hello.cpp"/>
<define name="DEBUG_TRACE" value="1"/>
</compile>