update dev300-m58
[ooovba.git] / framework / inc / macros / debug.hxx
blob261f839fd3ebc44c2fb8f69d1144fe408fc014c4
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: debug.hxx,v $
10 * $Revision: 1.14 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __FRAMEWORK_MACROS_DEBUG_HXX_
32 #define __FRAMEWORK_MACROS_DEBUG_HXX_
34 //*****************************************************************************************************************
35 // Disable all feature of this file in produkt version!
36 // But enable normal assertion handling (as messagebox) in normal debug version.
37 // User can overwrite these adjustment with his own values! We will do it only if nothing is set.
38 //*****************************************************************************************************************
40 //-----------------------------------------------------------------------------------------------------------------
41 // => "personal debug code"
42 #if OSL_DEBUG_LEVEL > 1
44 // Enable log mechanism for normal assertion and error handling.
45 // Look for user decisions before!
46 #ifndef ENABLE_LOGMECHANISM
47 #define ENABLE_LOGMECHANISM
48 #endif
49 // Enable assertion handling himself AND additional warnings.
50 // The default logtype is MESSAGEBOX.
51 // see "assertion.hxx" for further informations
52 #ifndef ENABLE_ASSERTIONS
53 #define ENABLE_ASSERTIONS
54 #endif
55 #ifndef ENABLE_WARNINGS
56 #define ENABLE_WARNINGS
57 #endif
59 //-----------------------------------------------------------------------------------------------------------------
60 // => "non product"
61 #elif OSL_DEBUG_LEVEL > 0
63 // Enable log mechanism for normal assertion and error handling.
64 // Look for user decisions before!
65 #ifndef ENABLE_LOGMECHANISM
66 #define ENABLE_LOGMECHANISM
67 #endif
68 // Enable assertion handling himself.
69 // The default logtype is MESSAGEBOX.
70 // see "assertion.hxx" for further informations
71 #ifndef ENABLE_ASSERTIONS
72 #define ENABLE_ASSERTIONS
73 #endif
75 //-----------------------------------------------------------------------------------------------------------------
76 // => "product" (OSL_DEBUG_LEVEL == 0)
77 #else
79 #undef ENABLE_LOGMECHANISM
80 #undef ENABLE_ASSERTIONS
81 #undef ENABLE_WARNINGS
82 #undef ENABLE_EVENTDEBUG
83 #undef ENABLE_REGISTRATIONDEBUG
84 #undef ENABLE_TARGETINGDEBUG
85 #undef ENABLE_MUTEXDEBUG
86 // #undef ENABLE_TIMEMEASURE
87 #undef ENABLE_MEMORYMEASURE
88 #undef ENABLE_FILTERDBG
90 #endif
92 //*****************************************************************************************************************
93 // generic macros for logging
94 //*****************************************************************************************************************
96 #include <macros/debug/logmechanism.hxx>
98 //*****************************************************************************************************************
99 // special macros for assertion handling
100 //*****************************************************************************************************************
101 #include <macros/debug/assertion.hxx>
103 //*****************************************************************************************************************
104 // special macros for event handling
105 //*****************************************************************************************************************
106 #include <macros/debug/event.hxx>
108 //*****************************************************************************************************************
109 // special macros to debug service registration
110 //*****************************************************************************************************************
111 #include <macros/debug/registration.hxx>
113 //*****************************************************************************************************************
114 // special macros to debug targeting of frames
115 //*****************************************************************************************************************
116 #include <macros/debug/targeting.hxx>
118 //*****************************************************************************************************************
119 // special macros to debug threading mechanism
120 //*****************************************************************************************************************
121 #include <macros/debug/mutex.hxx>
123 //*****************************************************************************************************************
124 // special macros to measure times of some operations
125 //*****************************************************************************************************************
127 /*OBSOLETE
128 #include <macros/debug/timemeasure.hxx>
131 //*****************************************************************************************************************
132 // special macros to debug our filter cache!
133 //*****************************************************************************************************************
134 #include <macros/debug/filterdbg.hxx>
136 //*****************************************************************************************************************
137 // end of file
138 //*****************************************************************************************************************
140 #endif // #ifndef __FRAMEWORK_MACROS_DEBUG_HXX_