From: Shalom Bresticker (r50386@email.sps.mot.com)
Date: Tue Nov 09 1999 - 06:08:06 PST
<x-html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
That is, should Syntax 19-4 on p. 316 of Draft 3 be
undefine_compiler_directive ::=
<BR> `undef text_macro_name
as it is now, or should it be
undefine_compiler_directive ::=
<BR> `undef text_macro_identifier
where
text_macro_name ::=
<BR> text_macro_identifier [
(list_of_formal_arguments) ]
Similarly, the same question needs to be answered for the `ifdef and
related compiler directives in Section 19.4.
Shalom
<BR>
Shalom Bresticker wrote:
<BLOCKQUOTE TYPE=CITE>I found the following old mail.
<BR>What is the correct answer ?
Shalom
<PRE>--
************************************************************************
Shalom Bresticker email: shalom@msil.sps.mot.com
Motorola Semiconductor Israel, Ltd. Tel #: +972 9 9522268
P.O.B. 2208, Herzlia 46120, ISRAEL Fax #: +972 9 9522444
<A HREF="http://www.motorola-semi.co.il/">http://www.motorola-semi.co.il/
</A>************************************************************************</PRE>
<HR WIDTH="90%" SIZE=4>
<NOBR><B>Subject: </B>Question of `undef</NOBR>
<BR><NOBR><B>Newsgroups: </B>comp.lang.verilog</NOBR>
<PRE VARIABLE WRAP>To Verilog Expert
I get a question of `undef directive in IEEE 1364.
In LRM 16.3.2 (page 222), the syntax of `undef is
undefine_compiler_directive ::= `undef text_macro_name
text_macro_name ::= identify [ ( list_of_formal_arguments ) ]
My question is :
Is the following verilog code legal ?
<p> `define max(a,b) ((a) > (b))? (a) : (b)
`undef max(a,b)
or only use "`undef max"
Any answer will be appreciate. Thanks.
<p>--
---- Ta-Yung Liu
<p><p><p><p></PRE>
</BLOCKQUOTE>
<PRE>--
************************************************************************
Shalom Bresticker email: shalom@msil.sps.mot.com
Motorola Semiconductor Israel, Ltd. Tel #: +972 9 9522268
P.O.B. 2208, Herzlia 46120, ISRAEL Fax #: +972 9 9522444
<A HREF="http://www.motorola-semi.co.il/"><a href="http://www.motorola-semi.co.il/">http://www.motorola-semi.co.il/>>
************************************************************************</PRE>
</HTML>
</x-html>
This archive was generated by hypermail 2.1.4
: Mon Jul 08 2002 - 12:53:31 PDT
and
sponsored by Boyd Technology, Inc.