Top "Preprocessor" questions

A program that processes input data to produce output that is used as input to another program.

#if DEBUG vs. Conditional("DEBUG")

Which is better to use, and why, on a large project: #if DEBUG public void SetPrivateValue(int value) { ... } #endif or […

c# debugging preprocessor debug-symbols
#ifdef replacement in the Swift language

In C/C++/Objective C you can define a macro using compiler preprocessors. Moreover, you can include/exclude some parts …

swift xcode preprocessor preprocessor-directive
How to convert an enum type variable to a string?

How to make printf to show the values of variables which are of an enum type? For instance: typedef enum {…

c++ c preprocessor ansi-c
#define in Java

I'm beginning to program in Java and I'm wondering if the equivalent to the C++ #define exists. A quick search …

java preprocessor c-preprocessor
How to determine whether code is running in DEBUG / RELEASE build?

I am making an app that processes sensitive credit card data. If my code is running in debug mode I …

ios xcode debugging preprocessor release
What is the worst real-world macros/pre-processor abuse you've ever come across?

What is the worst real-world macros/pre-processor abuse you've ever come across (please no contrived IOCCC answers *haha*)? Please add …

c++ c macros preprocessor
Can gcc output C code after preprocessing?

I'm using an open source library which seems to have lots of preprocessing directives to support many languages other than …

c c-preprocessor preprocessor preprocessor-directive
"Debug only" code that should run only when "turned on"

I would like to add some C# "debug only" code that only runs if the person debugging requests it. In …

c# debugging preprocessor
Xcode 4 can't locate public header files from static library dependency

Alternate titles to aid search Xcode can't find header Missing .h in Xcode Xcode .h file not found lexical or …

xcode4 header preprocessor static-libraries
Razor view engine, how to enter preprocessor(#if debug)

I am writing my first razor page today, can't figure out how to enter #if debug #else #endif How can …

asp.net-mvc razor preprocessor