StackOverflow Questions for Tag: variadic-macros

Mark Pauley
Mark Pauley

Reputation: 1485

How can I guarantee type safety of variadic arguments?

Score: 3

Views: 515

Answers: 4

Read More
Mohammed Micro
Mohammed Micro

Reputation: 333

What does ##__VA_ARGS__ mean?

Score: 23

Views: 58147

Answers: 2

Read More
Marco Scannadinari
Marco Scannadinari

Reputation: 1884

Error when defining a stringising macro with __VA_ARGS__

Score: 13

Views: 15916

Answers: 4

Read More
Anon
Anon

Reputation: 361

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

Score: 0

Views: 113

Answers: 1

Read More
Lundin
Lundin

Reputation: 214780

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

Score: 17

Views: 10056

Answers: 2

Read More
Hamza Yerlikaya
Hamza Yerlikaya

Reputation: 49339

Variadic macros with zero arguments

Score: 39

Views: 40674

Answers: 7

Read More
codeofandrin
codeofandrin

Reputation: 1557

Invalid preprocessor directive include inside variadic macro

Score: 1

Views: 60

Answers: 0

Read More
John
John

Reputation: 3534

How to simplify the similar macros?

Score: 0

Views: 86

Answers: 0

Read More
Anycorn
Anycorn

Reputation: 51545

C++ preprocessor __VA_ARGS__ number of arguments

Score: 136

Views: 195454

Answers: 13

Read More
Luiz Martins
Luiz Martins

Reputation: 1744

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

Score: 3

Views: 3008

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: 5813

C++ preprocessor macro with and without arguments

Score: 1

Views: 102

Answers: 0

Read More
aybe
aybe

Reputation: 16662

Getting __VA_OPT__ to be recognized by Visual Studio?

Score: 3

Views: 831

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: 179

Answers: 2

Read More
KJ7LNW
KJ7LNW

Reputation: 1921

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

Score: 1

Views: 153

Answers: 2

Read More
PinkTurtle
PinkTurtle

Reputation: 7041

Stringify each token in __VA_ARGS__ from a variadic macro

Score: 0

Views: 668

Answers: 1

Read More
mic_e
mic_e

Reputation: 5840

Overloading macros with variadic arguments

Score: 3

Views: 1302

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: 87

Answers: 1

Read More
Denis
Denis

Reputation: 1555

variadic macro doesn't compile

Score: 4

Views: 88

Answers: 1

Read More
Paweł Kurzawa
Paweł Kurzawa

Reputation: 61

_Generic function with several parameters

Score: 0

Views: 866

Answers: 3

Read More
PreviousPage 1Next