I think I can answer this. This is indeed ambiguous in 1364-2001, but addressed in 1364-2005. The resolution, based on CPP, is that in the macro definition, if the "(" immediately follows the macro name, with no white space betwen them, then it opens a parameter list. If there is white space between them, then it is part of the macro text. In the macro call, it makes no difference whether there is space between them or not. > 2) `define with arguments. The LRM v2.2 says that the macro > text can be any arbitrary text. This includes "(" being the > first character. On the other hand, the arguments, if present, > are surrounded by "()". I didn't see anything in the LRM on how > the "(" character is distinguished from being text or argument. > Some tools I tried have problems with this. Shalom -- Shalom.Bresticker @freescale.com Tel: +972 9 9522268 Freescale Semiconductor Israel, Ltd. Fax: +972 9 9522890 POB 2208, Herzlia 46120, ISRAEL New Cell: +972 54 7211033 [ ]Freescale Internal Use Only [ ]Freescale Confidential ProprietaryReceived on Mon Jul 25 22:36:04 2005
This archive was generated by hypermail 2.1.8 : Mon Jul 25 2005 - 22:36:08 PDT