Top "Preprocessor-directive" questions

Instructions to a preprocessor that control how it modifies source text

how do i make doxygen ignore function-like macros when building the documentation?

I need to document a project with doxygen, but also need to ignore some macros, which I use for readability …

doxygen preprocessor-directive
Are there any preprocessor directives that control loop unrolling?

Furthermore, how does the compiler determine the extent to unroll a loop, assuming all operations in the loop are completely …

c++ visual-c++ pragma preprocessor-directive
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
#if vs #ifndef vs #ifdef

My problem is first of all, understanding #ifndef and #ifdef. I also want to understand the difference between #if, #ifndef , …

c++ c preprocessor-directive
pasting "::" and "Foo" does not give a valid preprocessing token

I would like to attach MyNamespace:: to the function defined by the macro: #define transFunc(func) \ dimensionedScalar func(const dimensionedScalar&…

c++ macros preprocessor-directive
Preprocessor macro expansion to another preprocessor directive

Initially I thought I needed this, but I eventually avoided it. However, my curiosity (and appetite for knowledge, hum) make …

c++ macros c-preprocessor expansion preprocessor-directive
Can you nest C preprocessor directives?

For instance, is the following possible: #define definer(x) #define #x?

metaprogramming c-preprocessor preprocessor-directive
Programmatically check the build configuration

Using the DEBUG configuration, I can switch behaviour on and off using this type of syntax: #if DEBUG Console.WriteLine("…

c# .net c-preprocessor preprocessor-directive
Is #define banned in industry standards?

I am a first year computer science student and my professor said #define is banned in the industry standards along …

c c-preprocessor preprocessor-directive
Making something both a C identifier and a string?

Say you want to generate a matched list of identifiers and strings enum { NAME_ONE, NAME_TWO, NAME_THREE }; myFunction(…

c c-preprocessor preprocessor-directive