Was thinking about how to make a better variant of printf (under a different name of course) and was thinking about how to do it without stdarg.h so it could compile under earlier compiler versions.
The idea is relatively simple:
#define BAR(T,V,N) &(struct{char const *type=#T,void *data = &(V),size_t size = sizeof(V),void* next = N})
...
foo
(BAR(char const*,"Meaning of life according to HGTTG is ",BAR(int,42,BAR(char,'\n',NULL))));
Is something like that possible with those early versions or would I have to add a function call into that macro to get the simplified input? Also would be nice to get some links for online resources about this sort of stuff. Failed to figure out the right search keywords to find them with.