From 357feb953223b6d6882c41c9d21b6e476e6089be Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 19 Jun 2021 22:47:13 +0200 Subject: [PATCH] Update documentation as per lastest changes. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 1ae4664f..47035a50 100644 --- a/README.md +++ b/README.md @@ -5869,10 +5869,12 @@ Return the printf format associated to the type of 'x'. ##### M\_PRINT\_ARG(x) Print using printf the variable 'x'. The format of 'x' is deduced provided that it is a standard numerical C type. +If m-string is included, it supports also the type 'string\_t'. ##### M\_FPRINT\_ARG(file, x) Print into a file 'file' using fprintf the variable 'x'. The format of 'x' is deduced provided that it is a standard numerical C type. +If m-string is included, it supports also the type 'string\_t'. ##### M\_GET\_STRING\_ARG(string,x,append) @@ -5880,22 +5882,26 @@ Print into the string\_t 'string' the variable 'x'. The format of 'x' is deduced provided that it is a standard numerical C type. It needs the header 'm-string.h' for working (this macro is only a wrapper around it). +It supports also the type 'string\_t'. ##### M\_PRINT(args...) Print using printf all the variable in 'args'. The format of the arguments are deduced provided that it is a standard numerical C type. +If m-string is included, it supports also the type 'string\_t'. ##### M\_FPRINT(file, args...) Print into a file 'file' using fprintf all the variables in 'args'. The format of the arguments are deduced provided that it is a standard numerical C type. +If m-string is included, it supports also the type 'string\_t'. ##### M\_AS\_TYPE(type, x) Within a C11 \_Generic statement, all expressions must be valid C expression even if the case if always false, and is not executed. This can seriously limit the \_Generic statement. + This macro overcomes this limitation by returning : * either the input 'x' if it is of type 'type',