Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Variadic macro support in CDT 4.0

The provided code example seems to work fine, as long as you wrap the
statement in a function. Please open a bug and provide a code example that
displays the problematic behavior.

Mike Kucera
IBM CDT Team
IBM Toronto Lab
905-413-3657
mkucera@xxxxxxxxxx



                                                                           
             Doug Schaefer                                                 
             <DSchaefer@xxxxxx                                             
             m>                                                         To 
             Sent by:                  "CDT General developers list."      
             cdt-dev-bounces@e         <cdt-dev@xxxxxxxxxxx>               
             clipse.org                                                 cc 
                                                                           
                                                                   Subject 
             05/10/2007 02:28          RE: [cdt-dev] Variadic macro        
             PM                        support in CDT 4.0                  
                                                                           
                                                                           
             Please respond to                                             
               "CDT General                                                
             developers list."                                             
             <cdt-dev@eclipse.                                             
                   org>                                                    
                                                                           
                                                                           




I believe we do support __VA_ARGS__ at certain levels. Raise a bug you
something isn't working for you.

Thanks,
Doug Schaefer, QNX Software Systems
Eclipse CDT Project Lead, http://cdtdoug.blogspot.com

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On
> Behalf Of Stefan Bucur
> Sent: Thursday, May 10, 2007 2:27 PM
> To: cdt-dev@xxxxxxxxxxx
> Subject: [cdt-dev] Variadic macro support in CDT 4.0
>
> Hello!
>
> I'm using CDT 4.0 for developing a homework for school and I recently
> run into the following issue: when I use variadic macros (variable
> length macros), the editor shows to be an error in certain situations,
> although GCC compiles the code successfully. You have a sample of the
> relevant code below:
>
>
> #define DEBUG_MSG(...) fprintf(stderr,"DEBUG: " __VA_ARGS__)
>
> [... some code between ...]
>
> DEBUG_MSG("Querying server %s...\n", inet_ntoa(crServer->address));
>
>
> The question is whether this is a language feature not currently
> supported or a bug I ran into accidentally?
>
> Thanks!
>
> Stefan Bucur
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev




Back to the top