Skip to content

Latest commit

 

History

History
66 lines (57 loc) · 2.75 KB

File metadata and controls

66 lines (57 loc) · 2.75 KB
title C/C++ Preprocessor Reference | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
preprocessor
preprocessor, reference overview
ms.assetid e4a52843-7016-4f6d-8b40-cb1ace18f805
caps.latest.revision 9
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

C/C++ Preprocessor Reference

The C/C++ Preprocessor Reference explains the preprocessor as it is implemented in Microsoft C/C++. The preprocessor performs preliminary operations on C and C++ files before they are passed to the compiler. You can use the preprocessor to conditionally compile code, insert files, specify compile-time error messages, and apply machine-specific rules to sections of code.

In This Section

Preprocessor Directives
Describes directives, typically used to make source programs easy to change and easy to compile in different execution environments.

Preprocessor Operators
Discusses the four preprocessor-specific operators used in the context of the #define directive.

Predefined Macros
Discusses predefined macros as specified by ANSI and Microsoft C++.

Pragmas
Discusses pragmas, which offer a way for each compiler to offer machine- and operating system-specific features while retaining overall compatibility with the C and C++ languages.

Related Sections

C++ Language Reference
Provides reference material for the Microsoft implementation of the C++ language.

C Language Reference
Provides reference material for the Microsoft implementation of the C language.

Building a C/C++ Program
Provides links to topics discussing compiler and linker options.

Visual C++ Libraries
Provides links to the various libraries provided with Visual C++, including ATL, MFC, OLE DB, the C run-time library, and the C++ Standard Library.

Creating and Managing Visual C++ Projects
Describes the user interface in Visual Studio that enables you to specify the directories that the project system will search to locate files for your C++ project.