Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Variadic macros

114 views
Skip to first unread message

remod

unread,
Dec 31, 2009, 3:33:17 AM12/31/09
to
Hi there,
I'm writing a C library and I'm now testing it with various compiler
to ensure that people can use it with their preferred compiler.

I've used C99 variadic macros but it seems lcc-win32 doesn't yet
support them. Am I correct or there is any option that will enable
it?

Thanks.

R.D.

P.S. So far my library works with gcc, MS VisualC++, OpenWatcom,
Digital Mars C and Pelles-C. I'd really like to add lcc-win32 to the
list.

Message has been deleted
Message has been deleted

anony

unread,
Dec 19, 2012, 3:43:31 AM12/19/12
to
3 years later, it's still the same with lcc-win32 (dec.11,2012):
Variadic macros are implemented, but with a bug.

The easiest way of variadic macro is working so far:
#define my_printf(...) printf(__VA_ARGS__)

But in combination with fix variables the translation fails:
#define my_printf(a,...) printf(a,__VA_ARGS__)
Only the first variadic variable is found in the preprocessor output, and a ',' is missing.
I also used lcc-win32 between other compilers to check C99-code.

jacob navia

unread,
Jan 19, 2013, 5:23:20 AM1/19/13
to
Le 19/12/12 09:43, anony a �crit :
Dear "anony"

Yes, I haven't done that for many reasons. As you may know, I can't do
everything I would like to do, since the day has only 24 hours, and most
of those are busy with:

o Caring about paying customers
o Eating
o Sleeping
o Caring about my kids and my family
o Fixing other bugs in lcc-win, that I consider more important: bugs in
code generation, in the debugger, etc.
o Porting lcc-win

and many other projects and stuff.

I see that you are frustrated about this but I can't do otherwise.

Sorry

jacob
0 new messages