RE: Macros and semicolons

From: Michael (Mac) McNamara <mcnamara@cadence.com>
Date: Thu Mar 25 2010 - 09:12:50 PDT

I also agree that we should mandate the use of semicolons for these macros, especially as it makes simple the calculation of indentation by various editing software;

Michael McNamara
VP&GM System Software
Cadence Design Systems
mcnamara@cadence.com
From: owner-systemc-p1666-technical@eda.org [mailto:owner-systemc-p1666-technical@eda.org] On Behalf Of Jerome CORNET
Sent: Thursday, March 25, 2010 1:59 AM
To: john.aynsley@doulos.com
Cc: systemc-p1666-technical@eda.org
Subject: Re: Macros and semicolons

On 3/25/2010 9:55 AM, john.aynsley@doulos.com<mailto: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<http://www.mailscanner.info/>, and is
believed to be clean.
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Mar 25 09:13:12 2010

This archive was generated by hypermail 2.1.8 : Thu Mar 25 2010 - 09:13:13 PDT