Gcc Digest, Vol 29, Issue 7

Yair Lenga yair.lenga@gmail.com
Wed Jul 6 07:59:22 GMT 2022


Thanks for suggestion, definitely doable, more verbose vs the scanf, but will do the trick. I will use it as my fallback, if no path with my current approach. Yair. Sent from my iPad

> On Jul 6, 2022, at 10:17 AM, David Brown <david@westcontrol.com> wrote:
> 
> I haven't worked through all the details, but I wonder if this could be turned around a bit.  Rather than your function taking a variable number of arguments of different types, which as you know can be a risky business, have it take an array of (type, void*) pairs (where "type" is an enumeration).  Use some variadic macro magic to turn the "RESULT_SET_READ" into the creation of a local array that is then passed on to the function.


More information about the Gcc mailing list