From 379d555d35a81107eb16bf649c60cdb902555af4 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 10 Apr 2022 23:12:32 +0200 Subject: [PATCH] Remove M_IF_DEFAULT1 from documentation --- README.md | 14 -------------- doc/API.txt | 2 ++ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 8cd2d332..b6c67b62 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/doc/API.txt b/doc/API.txt index 12944552..1ef1d571 100644 --- a/doc/API.txt +++ b/doc/API.txt @@ -74,3 +74,5 @@ V0.5.*: * M_INVERT is renamed into M_REVERSE to be more coherent with the REVERS * Rename GET_SET_KEY operator in SAFE_GET_KEY operator. V0.6.*: * Rename M_DEFAULT_OPLIST in M_BASIC_OPLIST + * Remove experimental macro M_IF_DEFAULT1. +