Top "Conditional-compilation" questions

Compilation of certain parts of source code will be included/excluded.

Is #ifdef MACRO equivalent to a comment

Assuming that MACRO is not defined, are these equivalent #ifdef MACRO Not valid C or C++ code #endif /* Not valid …

c comments c-preprocessor conditional-compilation
Swift: iOS Deployment Target Command Line Flag

How do I check the iOS deployment target in a Swift conditional compilation statement? I've tried the following: #if __IPHONE_…

ios swift conditional-compilation buildconfiguration deployment-target
Why {$IFDEF MSWINDOWS} is replaced with {$IF defined(MSWINDOWS)} in Delphi XE5?

In XE5 all conditional compilations such as {$IFDEF MSWINDOWS} are replaced with {$IF defined(MSWINDOWS)} For example System.Diagnostics.pas …

delphi conditional-statements delphi-xe5 conditional-compilation defined
Conditional compilation for .NET 4

Possible Duplicate: Conditional compilation and framework targets I have some code that works in .NET 4, but it does not work …

c# .net-4.0 conditional-statements conditional-compilation
Conditional compilation with ifndef and || doesn't catch second case

I'm trying to disable automated crash logs reports when one or both of two defines are set: DEBUG for our …

ios objective-c conditional-compilation
Preprocessor directives across different files in C#

I know that I can use preprocessor directives in C# to enable/disable compilation of some part of code. If …

c# c-preprocessor conditional-compilation
Change name of exe depending on conditional compilation symbol

Can you tell Visual Studio to output a different name of an exe file depending on if a specific conditional …

c# visual-studio msbuild conditional-compilation
Conditional compilation depending on the framework version in C#

Are there any preprocessor symbols which allow something like #if CLR_AT_LEAST_3.5 // use ReaderWriterLockSlim #else // use ReaderWriterLock #endif or …

c# c-preprocessor conditional-compilation
Alternatives to Conditional Compilation in C#

What is the alternative to having code with conditional compilation in C#? I have a class that has lots of …

c# conditional-compilation
Conditional compilation in C++ based on operating system

I would like to write a cross-platform function in C++ that contains system calls. What conditional compilation flags can I …

windows visual-studio linux cross-platform conditional-compilation