Top "Macros" questions

***DO NOT USE for VBA / MS-Office languages.

Implicit declaration of function - C99

I am currently using Xcode 4, and in my .pch file I have this macro: #define localize(s) NSLocalizedString((s), nil). …

objective-c xcode macros c99 pch
Redefining or changing macro value

I am currently working on an already developed project written in MFC C++ and am facing a problem with an …

c++ mfc macros redefinition
Is there a macro recorder for Eclipse?

Is there a good Eclipse plugin for recording and playing back macros? I've tried this one, but it didn't do …

java eclipse ide editor macros
Mmh, who are you PRIu64?

I am new to C and I am confronted with: #include <stdio.h> #include <inttypes.h> …

c macros printf
Saving vim macros

Does anyone know how to properly save/reuse macros recorded inside of a vim editor?

vim editor macros
Can we have recursive macros?

I want to know if we can have recursive macros in C/C++? If yes, please provide a sample example. …

c++ c macros c-preprocessor
How to undefine a define at commandline using gcc

How do I at compile time undefine a compiler macro using gcc. I tried some compile args to gcc like …

gcc macros c-preprocessor
Is there a way to both check a macro is defined and it equals a certain value at the same time

I regularly use object-like preprocessor macros as boolean flags in C code to turn on and off sections of code. …

c macros c-preprocessor directive
Is #pragma once part of the C++11 standard?

Traditionally, the standard and portable way to avoid multiple header inclusions in C++ was/is to use the #ifndef - #…

c++ c++11 macros header-files c++14
Preprocessor output

How do I view the output produced by the C pre-processor, prior to its conversion into an object file? I …

gcc macros c-preprocessor