2 May
2003
2 May
'03
7:12 p.m.
Eric Robert wrote:
Hi,
I think the preprocessor library could help me here but I'm having problems understanding it. Maybe someone will be so kind to explain it to me a bit. Here is what I want to produce:
void foo(char); void foo(int); void foo(unsigned int); ....
You got the idea. Something that repeats a list of things i.e. here, types. How can I do that?
Thanks! Eric
The best way to do it depends on the scope (i.e. size) of what you want to repeat. Doing something like the above is pretty easy in a variety of different ways, but I'm guessing that you want to do something more complicated. Regards, Paul Mensonides