Top "Macros" questions

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

Portable UNUSED parameter macro used on function signature for C and C++

I'm interested in creating a macro for eliminating the unused variable warning. This question describes a way to suppress the …

c++ c macros warnings
Expand macros inside quoted string

Possible Duplicate: C Macros to create strings I have a function which accepts one argument of type char*, like f("…

c macros c-preprocessor c-strings
Comma in C/C++ macro

Say we have a macro like this #define FOO(type,name) type name Which we could use like FOO(int, …

c++ c macros c-preprocessor
Constexpr vs macros

Where should I prefer using macros and where should I prefer constexpr? Aren't they basically the same? #define MAX_HEIGHT 720 …

c++ c++11 macros constexpr
What are C macros useful for?

I have written a little bit of C, and I can read it well enough to get a general idea …

c macros c-preprocessor language-design language-features
Escaping a # symbol in a #define macro?

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
Macros in Swift?

Does Swift currently support macros, or are there future plans to add support? Currently I'm scattering: Log.trace(nil, function: __…

macros swift
Is it possible for C preprocessor macros to contain preprocessor directives?

I would like to do the equivalent of the following: #define print_max(TYPE) \ # ifdef TYPE##_MAX \ printf("%lld\n", …

c macros nested c-preprocessor expansion
How to auto execute a macro when opening a Powerpoint presentation?

I have a pretty basic question, but could not find the answer on internet.In Powerpoint 2010, I have a macro …

macros powerpoint startup execute