Top "C-preprocessor" questions

A textual macro processor applied before compiling C and C++ language programs.

Error when defining a stringising macro with __VA_ARGS__

I have been trying to implement a function macro in C that prepends "DEBUG: ", to the argument, and passes its …

c macros c-preprocessor variadic-macros stringification
C preprocessor __TIMESTAMP__ in ISO 8601:2004

How can I have a __TIMESTAMP__ replacement in ISO 8601:2004? __TIMESTAMP__ Sat Jul 6 02:50:06 2013 vs __TIMESTAMP_ISO__ 2013-07-06T00:50:06Z

c gcc clang c-preprocessor icc
Why does the C preprocessor consider enum values as equal?

Why does the std::cout line in the following code run even though A and B are different? #include <…

c++ c-preprocessor
Can I pass a preprocessor definition to the resource compiler through the command line?

I'm currently trying to switch between a few different default Icons in a Visual C++ .rc file using #ifdef tags. …

c++ visual-studio-2010 msbuild c-preprocessor rc
Editing Google's C++ DISALLOW_COPY_AND_ASSIGN Preprocessor Macro for C++11 Move Semantics

I've been using Google's DISALLOW_COPY_AND_ASSIGN macro from their C++ Style Guide for a couple of months now, …

c++ c++11 c-preprocessor google-style-guide
Preprocessor Directive: #elif not defined?

Is there a preprocessor directive that checks whether a constant is not defined. I am aware of the #ifndef directive …

c-preprocessor preprocessor-directive
MSVC++ variadic macro expansion

So I've got a macro that works nicely in GCC, but not in Microsoft's C++ Compiler. I'm hoping somebody might …

c++ visual-c++ c-preprocessor variadic-macros
Precompiled Headers? Do we really need them

Back a long time ago I used to use pre-compiled headers: a. to speed compilation and b. because I supported …

c++ c-preprocessor precompiled-headers
NSNotifications name best practice

In trying to de-couple my model from the view controllers that display fetched data, when an asynchronous fetch completes, I …

objective-c c-preprocessor nsnotification
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