Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 89213 invoked from network); 30 Jul 2008 16:14:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jul 2008 16:14:25 -0000 Received: (qmail 72278 invoked by uid 500); 30 Jul 2008 16:14:24 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 72259 invoked by uid 500); 30 Jul 2008 16:14:24 -0000 Mailing-List: contact commits-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list commits@stdcxx.apache.org Received: (qmail 72250 invoked by uid 99); 30 Jul 2008 16:14:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jul 2008 09:14:24 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jul 2008 16:13:38 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 80568238889F; Wed, 30 Jul 2008 09:14:04 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r681102 - /stdcxx/branches/4.2.x/include/rw/_defs.h Date: Wed, 30 Jul 2008 16:14:04 -0000 To: commits@stdcxx.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080730161404.80568238889F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Wed Jul 30 09:14:03 2008 New Revision: 681102 URL: http://svn.apache.org/viewvc?rev=681102&view=rev Log: 2008-07-30 Martin Sebor * include/rw/_defs.h (_RWSTD_ATTRIBUTE_NOTHROW): Defined as a no-op when the attribute isn't supported by the compiler to make the macro portably usable. (__rw_assert_fail): Inverted the order of the function attribute and exception specification to prevent compiler errors. Modified: stdcxx/branches/4.2.x/include/rw/_defs.h Modified: stdcxx/branches/4.2.x/include/rw/_defs.h URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/rw/_defs.h?rev=681102&r1=681101&r2=681102&view=diff ============================================================================== --- stdcxx/branches/4.2.x/include/rw/_defs.h (original) +++ stdcxx/branches/4.2.x/include/rw/_defs.h Wed Jul 30 09:14:03 2008 @@ -1189,6 +1189,8 @@ // attributes cannot appear on function definitions # define _RWSTD_DEFINE_NOTHROW /* empty */ #else + // make the macro usable even when it doesn't do anything +# define _RWSTD_ATTRIBUTE_NOTHROW /* empty */ // emulate using empty exception specifications which must // be specified for both declarations and definitions # define _RWSTD_DECLARE_NOTHROW _THROWS(()) @@ -1217,7 +1219,7 @@ // called for failed assertions void _RWSTD_EXPORT __rw_assert_fail (const char*, const char*, int, const char*) - _RWSTD_ATTRIBUTE_NORETURN _RWSTD_DECLARE_NOTHROW; + _RWSTD_DECLARE_NOTHROW _RWSTD_ATTRIBUTE_NORETURN;