stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r399888 - /incubator/stdcxx/trunk/tests/include/testdefs.h
Date Thu, 04 May 2006 23:48:31 GMT
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  <sebor@roguewave.com>

	* 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



Mime
View raw message