Re: Macros and semicolons

From: Jerome CORNET <jerome.cornet@st.com>
Date: Thu Mar 25 2010 - 01:58:31 PDT

On 3/25/2010 9:55 AM, john.aynsley@doulos.com wrote:
> Just trying to clear up a few odds-and-ends...
>
> The LRM does not make it clear whether or not a trailing semicolon is
> required or permitted after the invocation of macros SC_METHOD,
> SC_THREAD, SC_HAS_PROCESS etc, although a trailing semicolon is shown
> in every example, and I think it has become standard practice in the
> SystemC community to include the semicolon.
>
> The LRM does say that the definition of each of the macros is
> implementation-defined, which would make it implementation-specific
> whether the trailing semicolon is actually necessary.
>
> I propose we mandate the inclusion of the trailing semicolon.
>
> AGREE? DISAGREE? COMMENTS?

Agreed :-)

Jerome

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Mar 25 01:58:51 2010

This archive was generated by hypermail 2.1.8 : Thu Mar 25 2010 - 01:58:52 PDT