![]() |
![]() |
1034 | ![]() |
||||
![]() | |||||||
| Language extensions | |||||||
A macro is being defined with a named variable argument list. This syntax is not recognized in either ISO:C90 or ISO:C99; but it is supported by some C compilers. If a variable argument list is required, ISO:C99 provides a preferred syntax. For example:
/*PRQA S 553,2017,3429,3453 ++*/
#define D1(fmt, args...) fprintf(stderr, fmt, args) /* Message 1034 */
#define D2(fmt, ...) fprintf(stderr, fmt, __VA_ARGS__) /* Message 1030 */
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |