is there a variable number macro arguments ? lazarus / 61-Beginners ---------------------------------------------------------------------- whatsup · 2017-03-05 15:56 hey all is there a macro with variable number of arguments like in C/C++ ? C syntax:  #define MyMacro1(...)   #define MyMacros2(x,...) it's possible to call these macros with any number of arguments is something like this avaible in freePascal ? thanks in advanced ---------------------------------------------------------------------- Phil · 2017-03-05 16:00 Quote from: whatsup on March 05, 2017, 04:56:45 pmis there a macro with variable number of arguments like in C/C++ ? http://www.freepascal.org/docs-html/prog/progse5.html ---------------------------------------------------------------------- Thaddy · 2017-03-05 16:08 No. ---------------------------------------------------------------------- marcov · 2017-03-05 16:11 FPC does not support parameterised macros, so also not with multiple parameters. But if you want to use Pascal only, most cases can be solved with inline functions and/or array of const. Or use an external preprocessor before compiling your sources, even C's.