Top "C-preprocessor" questions

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

Concat two `const char` string literals

Is it possible to concat two string literals using a constexpr? Or put differently, can one eliminate macros in code …

c++ c++11 c-preprocessor constexpr string-literals
C Macro Token Concatenation involving a variable - is it possible?

I'm trying to define a macro to generate a token name, containing a variable. Basically, what I'm trying is this: #…

c concatenation token c-preprocessor stringification
Preserving preprocessor definitions

Possible Duplicate: Can I redefine a C++ macro then define it back? Say I have some code that uses the …

c++ save c-preprocessor
Xcode Preprocessor Output

I want to check the output of the preprocessor for some files. How can I view the preprocessor's output in …

objective-c xcode c-preprocessor pch
This obfuscated C code claims to run without a main(), but what does it really do?

#include <stdio.h> #define decode(s,t,u,m,p,e,d) m##s##u##t #define begin …

c c-preprocessor obfuscation
Header file included only once in entire program?

I know this is a common question but I still can't fully get my head around it. In a C …

c++ c c-preprocessor header-files
Can macros be overloaded by number of arguments?

How does this work? How can a C99/C++11 variadic macro be implemented to expand to different things on the …

c++ c overloading c-preprocessor variadic-macros
When to use preprocessor directives in .net?

I think this is a simple question so I assume I'm missing something obvious. I don't really ever use preprocessor …

c# .net c-preprocessor preprocessor-directive
When can you omit the file extension in an #include directive?

I'm playing around with gmock and noticed it contains this line: #include <tuple> I would have expected tuple.…

c++ include c-preprocessor standards