Top "Conditional-compilation" questions

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

Is it possible to define {$IFDEF} for more than one directive at once?

Is it possible to define more than one conditional in one {$IFDEF} directive ? I would like to have syntax like …

delphi logical-operators conditional-compilation
How to compile specific files in objective-c++ and the rest of the project in objective-c

I'm currently busy on a project where I need to use an external accessory to read Mifare 1k tags. The …

objective-c xcode compilation objective-c++ conditional-compilation
Debug Mode In VB 6?

How can I do something similar to the following C code in VB 6? #ifdef _DEBUG_ // do things #else // do other …

vb6 conditional-compilation
What C preprocessor conditional should I use for OS X specific code?

What C preprocessor conditional should I use for OS X specific code? I need to include a specific library if …

c macos c-preprocessor conditional-compilation
C-style conditional compilation in golang

Does golang support #define DEBUG #ifdef DEBUG fmt.Println("Debug message..."); #endif So I can build a debug version with …

go conditional-compilation
Visual Studio conditional project reference based on a constant

For user authorization, I only want to include a specific module for each user. So I configured Conditional Compilation like …

c# visual-studio reference project conditional-compilation
Using ifdef and ifndef directives

I'm trying to check whether a variable is defined using ifndef/ifdef, but I keep getting a not found error …

bash makefile gnu-make conditional-compilation ifndef
Conditional compilation symbol for a .NET Core class library

I have created a .NET Core R2 class library and have some common code that I use for several different …

c# conditional-compilation .net-core-rc2
Why should #ifdef be avoided in .c files?

A programmer I respect said that in C code, #if and #ifdef should be avoided at all costs, except possibly …

c conditional-compilation