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

Now it works fine for me as well, as I updated to CDT 4.0 RC1.
However, I ran into another issue with __attribute__ tags: the editor
doesn't recognize them any more and reports errors. I filed a bug at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=186707 concerning this
problem.

Stefan Bucur

On 5/11/07, Mike Kucera <mkucera@xxxxxxxxxx> wrote:
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


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top