From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/c/preprocessor.html | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 devdocs/c/preprocessor.html (limited to 'devdocs/c/preprocessor.html') diff --git a/devdocs/c/preprocessor.html b/devdocs/c/preprocessor.html new file mode 100644 index 00000000..1300711b --- /dev/null +++ b/devdocs/c/preprocessor.html @@ -0,0 +1,36 @@ +

Preprocessor

The preprocessor is executed at translation phase 4, before the compilation. The result of preprocessing is a single file which is then passed to the actual compiler.

+

Directives

The preprocessing directives control the behavior of the preprocessor. Each directive occupies one line and has the following format:

+

The null directive (# followed by a line break) is allowed and has no effect.

+

Capabilities

The preprocessor has the source file translation capabilities:

+

The following aspects of the preprocessor can be controlled:

+

Footnotes

  1. These are the directives defined by the standard. The standard does not define behavior for other directives: they might be ignored, have some useful meaning, or make the program ill-formed. Even if otherwise ignored, they are removed from the source code when the preprocessor is done. A common non-standard extension is the directive #warning which emits a user-defined message during compilation.(until C23)

References

See also

+ + +
C documentation for Predefined Macro Symbols
C documentation for Macro Symbol Index
C++ documentation for Preprocessor
+

+ © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
+ https://en.cppreference.com/w/c/preprocessor +

+
-- cgit v1.2.3