summaryrefslogtreecommitdiff
path: root/framework/inc/macros/debug.hxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-04-15 16:33:58 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-04-15 16:33:58 +0000
commit0887d679bdb3b7b39653a4d465cc6bb046414dfd (patch)
tree467ee3b1809a4b66f95a380a12bd349704b3f325 /framework/inc/macros/debug.hxx
parent3db0f7ef06207b997a802015032048b746420535 (diff)
INTEGRATION: CWS dbgmacros1 (1.9.88); FILE MERGED
2003/04/09 11:07:48 kso 1.9.88.1: #108413# - debug macro unification.
Diffstat (limited to 'framework/inc/macros/debug.hxx')
-rw-r--r--framework/inc/macros/debug.hxx19
1 files changed, 7 insertions, 12 deletions
diff --git a/framework/inc/macros/debug.hxx b/framework/inc/macros/debug.hxx
index 227105cf82ed..0cc29262a8b2 100644
--- a/framework/inc/macros/debug.hxx
+++ b/framework/inc/macros/debug.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: debug.hxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: hr $ $Date: 2003-04-04 16:02:07 $
+ * last change: $Author: vg $ $Date: 2003-04-15 17:33:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -68,14 +68,9 @@
// User can overwrite these adjustment with his own values! We will do it only if nothing is set.
//*****************************************************************************************************************
-/*ATTENTION
- "DEBUG" must be checked before "_DEBUG" ... because otherwhise
- we couldn't differ between product-debug/product-no-debug/non-product-debug/non-product-no-debug ...!!!
- */
-
//-----------------------------------------------------------------------------------------------------------------
-// => for debug build project ("non product and debug compiled")
-#if defined( DEBUG )
+// => "personal debug code"
+#if OSL_DEBUG_LEVEL > 1
// Enable log mechanism for normal assertion and error handling.
// Look for user decisions before!
@@ -93,8 +88,8 @@
#endif
//-----------------------------------------------------------------------------------------------------------------
-// => for debug linked project ("non product")
-#elif defined( _DEBUG )
+// => "non product"
+#elif OSL_DEBUG_LEVEL > 0
// Enable log mechanism for normal assertion and error handling.
// Look for user decisions before!
@@ -109,7 +104,7 @@
#endif
//-----------------------------------------------------------------------------------------------------------------
-// => for product version
+// => "product" (OSL_DEBUG_LEVEL == 0)
#else
#undef ENABLE_LOGMECHANISM