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/04/18 23:49:13 UTC

svn commit: r395057 - /incubator/stdcxx/trunk/tests/include/testdefs.h

Author: sebor
Date: Tue Apr 18 14:49:13 2006
New Revision: 395057

URL: http://svn.apache.org/viewcvs?rev=395057&view=rev
Log:
2006-04-18  Martin Sebor  <se...@roguewave.com>

	* testdefs.h (_PTR_THROWS): New helper macro.

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=395057&r1=395056&r2=395057&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/include/testdefs.h (original)
+++ incubator/stdcxx/trunk/tests/include/testdefs.h Tue Apr 18 14:49:13 2006
@@ -6,16 +6,22 @@
  *
  ***************************************************************************
  *
- * Copyright (c) 1994-2005 Quovadx,  Inc., acting through its  Rogue Wave
- * Software division. Licensed under the Apache License, Version 2.0 (the
- * "License");  you may  not use this file except  in compliance with the
- * License.    You    may   obtain   a   copy   of    the   License    at
- * http://www.apache.org/licenses/LICENSE-2.0.    Unless   required    by
- * applicable law  or agreed to  in writing,  software  distributed under
- * the License is distributed on an "AS IS" BASIS,  WITHOUT WARRANTIES OR
- * CONDITIONS OF  ANY KIND, either  express or implied.  See  the License
- * for the specific language governing permissions  and limitations under
- * the License.
+ * Copyright 2005-2006 The Apache Software Foundation or its licensors,
+ * as applicable.
+ *
+ * Copyright 2003-2006 Rogue Wave Software.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  * 
  **************************************************************************/
 
@@ -52,6 +58,19 @@
 #ifdef _RWSTD_NO_FOR_LOCAL_SCOPE
 #  define for   if (0); else for
 #endif   // _RWSTD_NO_FOR_LOCAL_SCOPE
+
+
+// convenience macro for exception specification on function pointers
+#ifndef _RWSTD_NO_PTR_EXCEPTION_SPEC
+
+#define _PTR_THROWS(spec)   _THROWS (spec)
+
+#else   // if defined (_RWSTD_NO_PTR_EXCEPTION_SPEC)
+
+// throw specs on pointers to functions not implemented...
+#define _PTR_THROWS(ignore)
+
+#endif   // _RWSTD_NO_PTR_EXCEPTION_SPEC
 
 
 // _RWSTD_PRI{d,i,o,u,x}MAX: macros corresponding to those described