Re: Spaces in macro expansion in a #include?

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

 



On 31 March 2014 17:53, xuinkrbin. wrote:
> Given a macro:
>
> #define A(x) #x
> #define B 1
> #define C 2
> #define D B C
>
> If I have the following:
>
> #include A(D)
>
> GCC seems to expand the macro to:
>
> "12"
>
> and search for a file named "12" instead of "1 2".

When I try that it searches for a file named "D"




[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