diff options
author | Patrick Pelissier <Patrick.Pelissier@gmail.com> | 2023-12-23 01:46:07 +0300 |
---|---|---|
committer | Patrick Pelissier <Patrick.Pelissier@gmail.com> | 2023-12-23 01:46:07 +0300 |
commit | d318493c6cd9f25fc2af331b178b5d1f745943bb (patch) | |
tree | 070b3967d26b0d6c94934d10f4bf700ae09bdffb /README.md | |
parent | fecece19cb52d78edda57b97e08650e884fd2e19 (diff) |
Remove M_PRINT_ARG macro to simplify maintenance
(M_FPRINT_MACRO with stdout can be used instead)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -6376,20 +6376,15 @@ Theses macros are only valid if the program is built in C11 mode: Return the printf format associated to the type of 'x'. 'x' shall be a basic C variable, printable with printf. -##### M\_PRINT\_ARG(x) +##### M\_FPRINT\_ARG(file, x) -Print using printf the variable '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' natively. If the argument is extended (i.e. in the format '(var, optype)' with optype being either an oplist or a type with a globally registered oplist), then it will call the OUT\_STR method of the oplist on the variable 'var'. -##### M\_FPRINT\_ARG(file, x) - -Print into a file 'file' using fprintf the variable 'x'. -See M\_PRINT\_ARG for details on the supported variable. - ##### M\_GET\_STRING\_ARG(string,x,append) Print into the string\_t 'string' the variable 'x'. |