From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/SYNTAX/preprocessors.html | 83 +++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 reference/C/SYNTAX/preprocessors.html (limited to 'reference/C/SYNTAX/preprocessors.html') diff --git a/reference/C/SYNTAX/preprocessors.html b/reference/C/SYNTAX/preprocessors.html new file mode 100644 index 0000000..5885253 --- /dev/null +++ b/reference/C/SYNTAX/preprocessors.html @@ -0,0 +1,83 @@ +C compiler preprocessors + + + + +
+
+

C compiler preprocessors

+
+
+ +Preprocessor commands are executed before the compiler compiles the +source code. These commands will change the original code usually to +suit the operating environment and/or to add code that will be required by +calls to library functions. Preprocessors are recognised by the leading +# in their names. +

+ + + + + + + + + + + + + + +
Preprocessors
#include Insert a source file. +
#define Define a preprocessor +constant. +
#if Branch based on an expression. +
#ifdef Branch if preprocessor constant has been defined? +
#ifndef Branch is a preprocessor +constant has NOT been defined. +
#line Specify the number of the next source line. +
#undef Remove a preprocessor constant. +
#pragma Perform an implementation dependent action??? +
#else Executed if #if +#ifdef or #ifndef fails. +
#error Write an error message. +
#elif Executed when an #if fails. +
#endif Close #if #ifdef or +#ifndef +
+


+

Notes:

+ + + +

+ +


+

+

+ + + + +
+ Top + + Master Index + + Keywords + + Functions +
+
+

+


+
Martin Leslie +

+ + -- cgit v1.2.3-54-g00ecf