Re: Using typeof in function parameter list?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hallo Kevin,

> #define TEST_MACRO(structtype, fieldname) \
> struct structtype __dummy; \
> static int foo_function(typeof(_dummy.fieldname) param1,
typeof(_dummy.fieldname)
> param2);

> Unfortunately, this produces "parse error before (" messages. I can
use typeof > lots
> of other places, but can't seem to use it to define the parameters for
a > function.

I guess, this is not the complete example, but try to use variable
named "__dummy" as defined (not "_dummy").


compilatus


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux