stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r681102 - /stdcxx/branches/4.2.x/include/rw/_defs.h
Date Wed, 30 Jul 2008 16:14:04 GMT
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  <sebor@roguewave.com>

	* 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;
 
 
 



Mime
View raw message