1*f8e07b45SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*f8e07b45SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*f8e07b45SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*f8e07b45SAndrew Rist * distributed with this work for additional information 6*f8e07b45SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*f8e07b45SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*f8e07b45SAndrew Rist * "License"); you may not use this file except in compliance 9*f8e07b45SAndrew Rist * with the License. You may obtain a copy of the License at 10*f8e07b45SAndrew Rist * 11*f8e07b45SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*f8e07b45SAndrew Rist * 13*f8e07b45SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*f8e07b45SAndrew Rist * software distributed under the License is distributed on an 15*f8e07b45SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*f8e07b45SAndrew Rist * KIND, either express or implied. See the License for the 17*f8e07b45SAndrew Rist * specific language governing permissions and limitations 18*f8e07b45SAndrew Rist * under the License. 19*f8e07b45SAndrew Rist * 20*f8e07b45SAndrew Rist *************************************************************/ 21*f8e07b45SAndrew Rist 22*f8e07b45SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef __FRAMEWORK_MACROS_DEBUG_HXX_ 25cdf0e10cSrcweir #define __FRAMEWORK_MACROS_DEBUG_HXX_ 26cdf0e10cSrcweir 27cdf0e10cSrcweir //***************************************************************************************************************** 28cdf0e10cSrcweir // Disable all feature of this file in produkt version! 29cdf0e10cSrcweir // But enable normal assertion handling (as messagebox) in normal debug version. 30cdf0e10cSrcweir // User can overwrite these adjustment with his own values! We will do it only if nothing is set. 31cdf0e10cSrcweir //***************************************************************************************************************** 32cdf0e10cSrcweir 33cdf0e10cSrcweir //----------------------------------------------------------------------------------------------------------------- 34cdf0e10cSrcweir // => "personal debug code" 35cdf0e10cSrcweir #if OSL_DEBUG_LEVEL > 1 36cdf0e10cSrcweir 37cdf0e10cSrcweir // Enable log mechanism for normal assertion and error handling. 38cdf0e10cSrcweir // Look for user decisions before! 39cdf0e10cSrcweir #ifndef ENABLE_LOGMECHANISM 40cdf0e10cSrcweir #define ENABLE_LOGMECHANISM 41cdf0e10cSrcweir #endif 42cdf0e10cSrcweir // Enable assertion handling himself AND additional warnings. 43cdf0e10cSrcweir // The default logtype is MESSAGEBOX. 44cdf0e10cSrcweir // see "assertion.hxx" for further informations 45cdf0e10cSrcweir #ifndef ENABLE_ASSERTIONS 46cdf0e10cSrcweir #define ENABLE_ASSERTIONS 47cdf0e10cSrcweir #endif 48cdf0e10cSrcweir #ifndef ENABLE_WARNINGS 49cdf0e10cSrcweir #define ENABLE_WARNINGS 50cdf0e10cSrcweir #endif 51cdf0e10cSrcweir 52cdf0e10cSrcweir //----------------------------------------------------------------------------------------------------------------- 53cdf0e10cSrcweir // => "non product" 54cdf0e10cSrcweir #elif OSL_DEBUG_LEVEL > 0 55cdf0e10cSrcweir 56cdf0e10cSrcweir // Enable log mechanism for normal assertion and error handling. 57cdf0e10cSrcweir // Look for user decisions before! 58cdf0e10cSrcweir #ifndef ENABLE_LOGMECHANISM 59cdf0e10cSrcweir #define ENABLE_LOGMECHANISM 60cdf0e10cSrcweir #endif 61cdf0e10cSrcweir // Enable assertion handling himself. 62cdf0e10cSrcweir // The default logtype is MESSAGEBOX. 63cdf0e10cSrcweir // see "assertion.hxx" for further informations 64cdf0e10cSrcweir #ifndef ENABLE_ASSERTIONS 65cdf0e10cSrcweir #define ENABLE_ASSERTIONS 66cdf0e10cSrcweir #endif 67cdf0e10cSrcweir 68cdf0e10cSrcweir //----------------------------------------------------------------------------------------------------------------- 69cdf0e10cSrcweir // => "product" (OSL_DEBUG_LEVEL == 0) 70cdf0e10cSrcweir #else 71cdf0e10cSrcweir 72cdf0e10cSrcweir #undef ENABLE_LOGMECHANISM 73cdf0e10cSrcweir #undef ENABLE_ASSERTIONS 74cdf0e10cSrcweir #undef ENABLE_WARNINGS 75cdf0e10cSrcweir #undef ENABLE_EVENTDEBUG 76cdf0e10cSrcweir #undef ENABLE_REGISTRATIONDEBUG 77cdf0e10cSrcweir #undef ENABLE_TARGETINGDEBUG 78cdf0e10cSrcweir #undef ENABLE_MUTEXDEBUG 79cdf0e10cSrcweir // #undef ENABLE_TIMEMEASURE 80cdf0e10cSrcweir #undef ENABLE_MEMORYMEASURE 81cdf0e10cSrcweir #undef ENABLE_FILTERDBG 82cdf0e10cSrcweir 83cdf0e10cSrcweir #endif 84cdf0e10cSrcweir 85cdf0e10cSrcweir //***************************************************************************************************************** 86cdf0e10cSrcweir // generic macros for logging 87cdf0e10cSrcweir //***************************************************************************************************************** 88cdf0e10cSrcweir 89cdf0e10cSrcweir #include <macros/debug/logmechanism.hxx> 90cdf0e10cSrcweir 91cdf0e10cSrcweir //***************************************************************************************************************** 92cdf0e10cSrcweir // special macros for assertion handling 93cdf0e10cSrcweir //***************************************************************************************************************** 94cdf0e10cSrcweir #include <macros/debug/assertion.hxx> 95cdf0e10cSrcweir 96cdf0e10cSrcweir //***************************************************************************************************************** 97cdf0e10cSrcweir // special macros for event handling 98cdf0e10cSrcweir //***************************************************************************************************************** 99cdf0e10cSrcweir #include <macros/debug/event.hxx> 100cdf0e10cSrcweir 101cdf0e10cSrcweir //***************************************************************************************************************** 102cdf0e10cSrcweir // special macros to debug service registration 103cdf0e10cSrcweir //***************************************************************************************************************** 104cdf0e10cSrcweir #include <macros/debug/registration.hxx> 105cdf0e10cSrcweir 106cdf0e10cSrcweir //***************************************************************************************************************** 107cdf0e10cSrcweir // special macros to debug targeting of frames 108cdf0e10cSrcweir //***************************************************************************************************************** 109cdf0e10cSrcweir #include <macros/debug/targeting.hxx> 110cdf0e10cSrcweir 111cdf0e10cSrcweir //***************************************************************************************************************** 112cdf0e10cSrcweir // special macros to debug threading mechanism 113cdf0e10cSrcweir //***************************************************************************************************************** 114cdf0e10cSrcweir #include <macros/debug/mutex.hxx> 115cdf0e10cSrcweir 116cdf0e10cSrcweir //***************************************************************************************************************** 117cdf0e10cSrcweir // special macros to measure times of some operations 118cdf0e10cSrcweir //***************************************************************************************************************** 119cdf0e10cSrcweir 120cdf0e10cSrcweir /*OBSOLETE 121cdf0e10cSrcweir #include <macros/debug/timemeasure.hxx> 122cdf0e10cSrcweir */ 123cdf0e10cSrcweir 124cdf0e10cSrcweir //***************************************************************************************************************** 125cdf0e10cSrcweir // special macros to debug our filter cache! 126cdf0e10cSrcweir //***************************************************************************************************************** 127cdf0e10cSrcweir #include <macros/debug/filterdbg.hxx> 128cdf0e10cSrcweir 129cdf0e10cSrcweir //***************************************************************************************************************** 130cdf0e10cSrcweir // end of file 131cdf0e10cSrcweir //***************************************************************************************************************** 132cdf0e10cSrcweir 133cdf0e10cSrcweir #endif // #ifndef __FRAMEWORK_MACROS_DEBUG_HXX_ 134