From a619fa3f907c0e43fe854212f466bda63fceaa27 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Sun, 8 Feb 2004 07:04:09 +0000 Subject: [PATCH] Add wxCocoa-specific trace masks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/cocoa/log.h | 22 ++++++++++++++++++++++ include/wx/log.h | 5 +++++ 2 files changed, 27 insertions(+) create mode 100644 include/wx/cocoa/log.h diff --git a/include/wx/cocoa/log.h b/include/wx/cocoa/log.h new file mode 100644 index 0000000000..3770559fa9 --- /dev/null +++ b/include/wx/cocoa/log.h @@ -0,0 +1,22 @@ +/////////////////////////////////////////////////////////////////////////////// +// Name: wx/cocoa/log.h +// Purpose: Declare wxCocoa-specific trace masks +// Author: David Elliott +// Modified by: +// Created: 2004/02/07 +// RCS-ID: $Id$ +// Copyright: (c) 2004 David Elliott +// Licence: wxWindows licence +/////////////////////////////////////////////////////////////////////////////// + +#ifndef _WX_COCOA_LOG_H__ +#define _WX_COCOA_LOG_H__ + +// General tracing (in lieu of wxLogDebug) +#define wxTRACE_COCOA wxT("COCOA") +// Specific tracing +#define wxTRACE_COCOA_RetainRelease wxT("COCOA_RetainRelease") +#define wxTRACE_COCOA_TopLevelWindow_Size wxT("COCOA_TopLevelWindow_Size") +#define wxTRACE_COCOA_Window_Size wxT("COCOA_Window_Size") + +#endif //ndef _WX_COCOA_LOG_H__ diff --git a/include/wx/log.h b/include/wx/log.h index bcb090fe97..102e962521 100644 --- a/include/wx/log.h +++ b/include/wx/log.h @@ -560,5 +560,10 @@ wxSafeShowMessage(const wxString& title, const wxString& text); inline void wxLogLastError(const wxChar *) { } #endif //debug/!debug +// wxCocoa has additiional trace masks +#if defined(__WXCOCOA__) +#include "wx/cocoa/log.h" +#endif + #endif // _WX_LOG_H_