|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-2C1B74C4-C80D-5EF9-B822-2DA2FCF9B006" xml:lang="en"><title>General |
|
13 Macros</title><shortdesc>Describes macros that can be used in the platform-specific configuration |
|
14 header and in bootstrap code. </shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
15 <section id="GUID-B30AB815-54B8-48BB-9D3C-5607AF7B17C7"><title>INIT_LOGICAL_SYMBOL</title><codeblock id="GUID-CC5AE5B8-282D-59A9-9DD6-2D1D3A44944A" xml:space="preserve">INIT_LOGICAL_SYMBOL SYM, COUNT</codeblock><p>Checks if the symbol <codeph>SYM</codeph> is defined. If so, it sets it to |
|
16 a value which is logically TRUE and increments symbol <codeph>COUNT</codeph> by |
|
17 one; <codeph>COUNT</codeph> may be omitted if not required. </p><p>If the |
|
18 symbol <codeph>SYM</codeph> is not defined, then the macro defines it, and |
|
19 sets it to a logically <codeph>FALSE</codeph> value. </p> </section> |
|
20 <section id="GUID-5C119585-EA08-4981-AC57-47D38E3959DD"><title>INIT_NUMERIC_SYMBOL</title><codeblock id="GUID-A3603B75-AD74-5764-B822-8D91D21F5058" xml:space="preserve">INIT_NUMERIC_SYMBOL SYM, DEFAULT</codeblock><p>Checks if the symbol <codeph>SYM</codeph> is defined. If so, its value |
|
21 is left unchanged. </p><p>If <codeph>SYM</codeph> is not defined, then the |
|
22 macro defines it as a numeric variable and sets its value to <codeph>DEFAULT</codeph>. </p> </section> |
|
23 <section id="GUID-09DF08C5-F1CC-4ADA-89AA-41EA99B0F084"><title>INIT_NUMERIC_CONSTANT</title><codeblock id="GUID-DA525C7F-ABAC-5121-B752-3E5C81BB29B9" xml:space="preserve">INIT_NUMERIC_CONSTANT SYM, DEFAULT</codeblock><p>Checks if the symbol <codeph>SYM</codeph> is defined. If so, its value |
|
24 is left unchanged. </p><p>If <codeph>SYM</codeph> is not defined, then the |
|
25 macro defines it as a numeric constant and sets its value to <codeph>DEFAULT</codeph>. </p> </section> |
|
26 </conbody></concept> |