Top "Macros" questions

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

C multi-line macro: do/while(0) vs scope block

Possible Duplicates: What’s the use of do while(0) when we define a macro? Why are there sometimes meaningless do/…

c macros multiline
Where are the recorded macros stored in Notepad++?

I have recorded a macro that I want to share with my work colleague. In what location are these recorded …

file macros notepad++ file-location
How to use __DATE__ and __TIME__ predefined macros in as two integers, then stringify?

Want to use __ DATE __ and __ TIME __ as integer for giving automated version to my code in compile time. #define STRINGIZER(…

c macros predefined-macro
C Macro definition to determine big endian or little endian machine?

Is there a one line macro definition to determine the endianness of the machine. I am using the following code …

c architecture macros endianness
Error: macro names must be identifiers using #ifdef 0

I have the source code of an application written in C++ and I just want to comment something using: #ifdef 0 ... #…

c++ macros c-preprocessor
Is there a __CLASS__ macro in C++?

Is there a __CLASS__ macro in C++ which gives the class name similar to __FUNCTION__ macro which gives the function …

c++ macros
Optional Parameters with C++ Macros

Is there some way of getting optional parameters with C++ Macros? Some sort of overloading would be nice too.

c++ macros
How to use a Objective-C #define from Swift

I am migrating a UIViewController class to train a bit with Swift. I am successfully using Objective-C code via the …

objective-c macros swift
inline function vs macro function

Possible Duplicate: Inline functions vs Preprocessor macros I want to know the difference between the inline function and macro function. 1) …

c macros inline
Can I record/play macros in Visual Studio 2012/2013/2015/2017/2019?

Apparently macros were dropped from Visual Studio 2012. Is there a plugin/extension/tool that will let me record & play …

visual-studio-2015 visual-studio-2013 visual-studio-2017 macros visual-studio-2019