You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2006/05/05 01:48:31 UTC
svn commit: r399888 - /incubator/stdcxx/trunk/tests/include/testdefs.h
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 <se...@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