summaryrefslogtreecommitdiff
path: root/io/source/stm
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-04-15 14:58:58 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-04-15 14:58:58 +0000
commit006056ca5301ecbe95ecedad4f02f33ef061a240 (patch)
tree7685fa5b42efaba4f5db4f75c65cb3bae4543155 /io/source/stm
parentc625307a9fe31e370d73cc8a4764d8980cefc273 (diff)
INTEGRATION: CWS dbgmacros1 (1.2.40); FILE MERGED
2003/04/09 11:59:04 kso 1.2.40.1: #108413# - debug macro unification.
Diffstat (limited to 'io/source/stm')
-rw-r--r--io/source/stm/streamhelper.hxx23
1 files changed, 21 insertions, 2 deletions
diff --git a/io/source/stm/streamhelper.hxx b/io/source/stm/streamhelper.hxx
index 70e97fd75df9..a9b1cfdaec2f 100644
--- a/io/source/stm/streamhelper.hxx
+++ b/io/source/stm/streamhelper.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: streamhelper.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: hr $ $Date: 2001-09-26 15:55:26 $
+ * last change: $Author: vg $ $Date: 2003-04-15 15:58:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -58,6 +58,18 @@
*
*
************************************************************************/
+
+// Save NDEBUG state
+#ifdef NDEBUG
+#define STREAMHELPER_HXX_HAD_NDEBUG
+#undef NDEBUG
+#endif
+
+#if OSL_DEBUG_LEVEL == 0
+#define NDEBUG
+#endif
+#include <assert.h>
+
#define Max( a, b ) (((a)>(b)) ? (a) : (b) )
#define Min( a, b ) (((a)<(b)) ? (a) : (b) )
@@ -174,4 +186,11 @@ public:
};
+// Restore NDEBUG state
+#ifdef STREAMHELPER_HXX_HAD_NDEBUG
+#define NDEBUG
+#else
+#undef NDEBUG
+#endif
+
}