A textual macro processor applied before compiling C and C++ language programs.
Without going into the gory details I want to use a #define macro that will expand to a #include but …
c++ c macros c-preprocessor preprocessor-directive#include <stdio.h> #define f(a,b) a##b #define g(a) #a #define h(a) g(a) …
c c-preprocessor stringificationThe question is quite clear I think. I'm trying to write a compiler detection header to be able to include …
c clang llvm c-preprocessorI would like to do the equivalent of the following: #define print_max(TYPE) \ # ifdef TYPE##_MAX \ printf("%lld\n", …
c macros nested c-preprocessor expansionI am trying to write something like this: #define COV_ON(x) \ #ifdef COVERAGE_TOOL \ _Pragma (COVERAGE #x) #endif Is …
c c-preprocessorUnlike Objective-C, Swift has no preprocessor, so is there still a way to manually deprecate members of a class? I …
ios objective-c swift c-preprocessor deprecatedIs it possible to document preprocessor defines in Doxygen? I expected to be able to do it just like a …
c++ c-preprocessor doxygenI'm implementing The X macro, but I have a problem with a simple macro expansion. This macro (see below) is …
c macros c-preprocessorHow do I write a cpp macro which expands to include newlines?
c++ macros c-preprocessorI'm trying to detect the compiler used to compile my source code. I can easily find predefined macros to check …
c macros clang c-preprocessor