"Scott Johnson (Bellevue)" <[EMAIL PROTECTED]> wrote in message
news:47011@palm-dev-forum...
>
> > From: Ben Combee [mailto:[EMAIL PROTECTED]]
> > CodeWarrior supports ISO C (1999) style variable argument
> > lists, so you could do
> >   #define OVLOGMSG(...)     OVLogger(__VA_ARGS__)
>
> Thanks Ben!  This one is new to me, very cool.  FWIW, until 5 minutes
ago I
> was solving the problem less elegantly like this:
>
>     #define TRACETL(args) ( HostTraceOutputTL args )
>
> This makes the call slightly weird, requiring double parens:
>
>     TRACETL(( appErrorClass, "%s knows all", "Ben" ));

Yes, I implemented that bit of preprocessor fun during my previous stint
at Metrowerks working on the x86 compiler, and it got pushed to the
other MW compilers with the Pro 6 release.

--
Ben Combee, [EMAIL PROTECTED]
Techwood Broadcasting Foundation, Austin Bureau



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to