[sv-bc] Trimming whitespace from macro actuals

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Thu Aug 30 2007 - 11:49:23 PDT
Is there any difference in meaning between the following macro
invocations?

   `M1(wire1,wire2)
   `M1( wire1 , wire2 )

Are the whitespaces trimmed before invocation?

What if the whitespaces are being used to terminate an escaped
identifier?

  `define paste(x,y) x``y
  assign `paste(\7@ ,8) = 1'b1;

According to 3.7.1 in the V2005 LRM

  "Neither the leading backslash character nor the terminating white
space is considered to be part of the identifier."

Another example --

  assign `paste(\7@ ,\8@ ) = 1'b1;

-- Brad

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Aug 30 11:49:45 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 30 2007 - 11:50:25 PDT