StackOverflow Questions for Tag: variadic-macros

Mohammed Micro
Mohammed Micro

Reputation: 333

What does ##__VA_ARGS__ mean?

Score: 23

Views: 57434

Answers: 2

Read More
Marco Scannadinari
Marco Scannadinari

Reputation: 1874

Error when defining a stringising macro with __VA_ARGS__

Score: 13

Views: 15848

Answers: 4

Read More
Anon
Anon

Reputation: 175

Optional parentheses for C variadic macro (i.e. both function-like and object-like)

Score: 0

Views: 109

Answers: 1

Read More
Lundin
Lundin

Reputation: 213276

Is this a valid way of checking if a variadic macro argument list is empty?

Score: 17

Views: 9904

Answers: 2

Read More
Hamza Yerlikaya
Hamza Yerlikaya

Reputation: 49329

Variadic macros with zero arguments

Score: 39

Views: 40379

Answers: 7

Read More
codeofandrin
codeofandrin

Reputation: 1547

Invalid preprocessor directive include inside variadic macro

Score: 1

Views: 60

Answers: 0

Read More
John
John

Reputation: 3484

How to simplify the similar macros?

Score: 0

Views: 85

Answers: 0

Read More
Anycorn
Anycorn

Reputation: 51435

C++ preprocessor __VA_ARGS__ number of arguments

Score: 135

Views: 194487

Answers: 13

Read More
Luiz Martins
Luiz Martins

Reputation: 1724

A way to count the number of __VA_ARGS__ arguments, including 0, without compiler specific constructs

Score: 3

Views: 2885

Answers: 3

Read More
Aziz Kavas
Aziz Kavas

Reputation: 5

Troubleshooting C Macro Expansion Compilation Errors about format specifiers

Score: 0

Views: 59

Answers: 1

Read More
bers
bers

Reputation: 5771

C++ preprocessor macro with and without arguments

Score: 1

Views: 101

Answers: 0

Read More
aybe
aybe

Reputation: 16652

Getting __VA_OPT__ to be recognized by Visual Studio?

Score: 3

Views: 706

Answers: 1

Read More
Gizmo
Gizmo

Reputation: 941

How can you define std::variant at compile time if the dependent types are also defined at compile time?

Score: 0

Views: 164

Answers: 2

Read More
KJ7LNW
KJ7LNW

Reputation: 1891

Can __VA_OPT__(,) detect a trailing comma with nothing after it?

Score: 1

Views: 146

Answers: 2

Read More
PinkTurtle
PinkTurtle

Reputation: 7041

Stringify each token in __VA_ARGS__ from a variadic macro

Score: 0

Views: 621

Answers: 1

Read More
mic_e
mic_e

Reputation: 5830

Overloading macros with variadic arguments

Score: 3

Views: 1280

Answers: 2

Read More
louis rumor
louis rumor

Reputation: 13

why can't this macro be expanded when using wrapping macro of token pasting operator multiple times

Score: 1

Views: 81

Answers: 1

Read More
Denis
Denis

Reputation: 1543

variadic macro doesn't compile

Score: 4

Views: 78

Answers: 1

Read More
Paweł Kurzawa
Paweł Kurzawa

Reputation: 61

_Generic function with several parameters

Score: 0

Views: 851

Answers: 3

Read More
Eric Qiang
Eric Qiang

Reputation: 99

How to perform different behaviors based on the length of variadic args in cpp macro?

Score: 1

Views: 166

Answers: 3

Read More
PreviousPage 1Next