Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Formatter Removing Preprocessor Conditionals
Formatter Removing Preprocessor Conditionals [message #725467] Wed, 14 September 2011 16:58
Eclipse UserFriend
Hello,

Apologies if this has been answered elsewhere. It didn't turn up in my searches.

I have some code that uses preprocessor conditionals. I have found that if I use the automatic source formatter on this code, It will remove the preprocessor statements and leave only some of the c code within them, e.g.:

#ifdef _WIN32
foo();
#else
bar();
#endif

will become:

foo();

Is this something I can work around, or a known bug? I would like to be able to use the formatter to tidy up my code without being worried about this problem.

Thanks!
Previous Topic:when is the Syntax coloring be detemined ? (modified)
Next Topic:Setting environment variables to build linux kernel.
Goto Forum:
  


Current Time: Sat Jul 12 03:46:44 EDT 2025

Powered by FUDForum. Page generated in 0.03934 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top