From stdcxx-commits-return-660-apmail-incubator-stdcxx-commits-archive=incubator.apache.org@incubator.apache.org Thu May 04 23:48:56 2006 Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 74309 invoked from network); 4 May 2006 23:48:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2006 23:48:56 -0000 Received: (qmail 93615 invoked by uid 500); 4 May 2006 23:48:53 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 93578 invoked by uid 500); 4 May 2006 23:48:53 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 93552 invoked by uid 99); 4 May 2006 23:48:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 16:48:53 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 04 May 2006 16:48:52 -0700 Received: (qmail 74132 invoked by uid 65534); 4 May 2006 23:48:32 -0000 Message-ID: <20060504234832.74131.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r399888 - /incubator/stdcxx/trunk/tests/include/testdefs.h Date: Thu, 04 May 2006 23:48:31 -0000 To: stdcxx-commits@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.8 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: sebor Date: Thu May 4 16:48:30 2006 New Revision: 399888 URL: http://svn.apache.org/viewcvs?rev=399888&view=rev Log: 2006-05-04 Martin Sebor * testdefs.h (try, catch, RW_CATCH_ALL): Defined based on whether the config macro _RWSTD_NO_EXCEPTIONS is or isn't #defined. Modified: incubator/stdcxx/trunk/tests/include/testdefs.h Modified: incubator/stdcxx/trunk/tests/include/testdefs.h URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/include/testdefs.h?rev=399888&r1=399887&r2=399888&view=diff ============================================================================== --- incubator/stdcxx/trunk/tests/include/testdefs.h (original) +++ incubator/stdcxx/trunk/tests/include/testdefs.h Thu May 4 16:48:30 2006 @@ -50,9 +50,23 @@ # define std /* empty */ #endif // _RWSTD_NO_NAMESPACE && !std + #if defined (_RWSTD_NO_TYPENAME) && !defined (typename) # define typename /* ignore */ #endif // _RWSTD_NO_TYPENAME && !typename + + +#if defined (_RWSTD_NO_EXCEPTIONS) +# ifndef try +# define try if (0); else +# endif // try +# ifdef catch +# define catch void foo; while (0) +# endif +# define RW_CATCH_ALL(ignore) while (0) +#else // if !defined (_RWSTD_NO_EXCEPTIONS) +# define RW_CATCH_ALL(dot_dot_dot) catch (dot_dot_dot) +#endif // _RWSTD_NO_EXCEPTIONS // give the for-init-variable a local scope #ifdef _RWSTD_NO_FOR_LOCAL_SCOPE