incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Far...@kyiv.vdiweb.com>
Subject [PATCH] NEW_THROWS.cpp
Date Thu, 28 Sep 2006 15:28:47 GMT
  If the operator new doesn't throw exception, #define
_RWSTD_NO_NEW_THROWS
appears twice in config.h file:
- first (//#define _RWSTD_NO_NEW_THROWS) from configure.wsf script due
to zero exit code;
- second (#define _RWSTD_NO_NEW_THROWS) from test printf().


  The patch below:

Index: NEW_THROWS.cpp
===================================================================
--- NEW_THROWS.cpp	(revision 450890)
+++ NEW_THROWS.cpp	(working copy)
@@ -115,7 +115,5 @@
         return 0;
     }
 
-    printf ("#define _RWSTD_NO_NEW_THROWS\n");
-
-    return 0;
+    return 1;
 }

Farid.

Mime
View raw message