Remove M_IF_DEFAULT1 from documentation

This commit is contained in:
Patrick Pelissier committed 2022-04-10 23:12:32 +02:00
1 parent 8c01acb8d2
commit 379d555d35
2 files changed
+2 -14

No files matched your search

-14
View File
@@ -6294,20 +6294,6 @@ Return the pre-processing token 'action\_if\_two\_arg' if 'argslist' has two arg
Return the pre-processing token 'action' if the build is compiled in debug mode
(i.e. NDEBUG is undefined).
##### M\_IF\_DEFAULT1(default\_value, argumentlist)
Helper macro to redefine a function with a default value.
If there is only one variable as the argument list, print
the variable of the argument list then ', value',
instead only print the argument list (and so two arguments).
int f(int a, int b);
#define f(...) M_APPLY(f, M_IF_DEFAULT1(0, __VA_ARGS__))
This need to be called within a M\_APPLY macro.
Experimental macro. It may disappear or change in a broken way.
##### M\_DEFAULT\_ARGS(nbExpectedArg, (defaultArgumentlist), argumentList )
Helper macro to redefine a function with one or more default values.