Hey,

I have that preprocessor code:

#define CH(_pos) \
     part { name: "ch_"#_pos".base";

with gcc, '_pos' is stringified and the result is (if _pos is equal to 0) :

part { name: "ch_""0"".base";

With sun cpp, I get:

part { name: "ch_"#0".base";

Is stringification an extension of gcc ? I look at the doc (
http://gcc.gnu.org/onlinedocs/cpp/Stringification.html) and it does not
mention it's a gcc extension.

So is it an unsupported feature of suncc preprocessor ? Should I do
something specific for suncc ?

thank you

Vincent Torri
_______________________________________________
tools-compilers mailing list
[email protected]

Reply via email to