Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

/C (Preserve Comments During Preprocessing)

Preserves comments during preprocessing.


/C

This compiler option requires the /E, /P, or /EP option.

The following code sample will display the source code comment.

// C_compiler_option.cpp
// compile with: /E /C /c
int i;   // a variable

This sample will produce the following output.

#line 1 "C_compiler_option.cpp"
int i;   // a variable

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.

  2. Click the C/C++ folder.

  3. Click the Preprocessor property page.

  4. Modify the Keep Comments property.

To set this compiler option programmatically

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.