M E N U
Content
Introduction
Release Notes
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Referance Manual
Conventions
Templates
Constants
Identifiers
Operators
Directives
## // /* */
#define
#error
#if{def|ndef}
#include
#message
#undef
iPP
Legal
Feedback
|
Used to assign a text value to an identifier.
Syntax
#define identifier { text }
#define identifier( { identifier { , identifier }... } ) { text }
Notes
identifier
|
the identifier to use.
|
text
|
the text value to assign to the specified identifier.
|
If the second form is used then the parameters are place holders
for values to be substituted. Each parameter in the list must be uniue, each
parameter can appear more than once in macro definition and each parameter
can appear in any order withing the macro defintion. The number of arguments
in the call must match the number of parameters in the macro definition.
Example
#define VERSION "1.0.0"
#define MAX(a,b) ((a>=b)?a:b)
|