]> git.saurik.com Git - wxWidgets.git/commitdiff
Add wxCocoa-specific trace masks
authorDavid Elliott <dfe@tgwbd.org>
Sun, 8 Feb 2004 07:04:09 +0000 (07:04 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sun, 8 Feb 2004 07:04:09 +0000 (07:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cocoa/log.h [new file with mode: 0644]
include/wx/log.h

diff --git a/include/wx/cocoa/log.h b/include/wx/cocoa/log.h
new file mode 100644 (file)
index 0000000..3770559
--- /dev/null
@@ -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__
index bcb090fe979c04629cf6a19812ef2f6b0ac772c3..102e962521d543bd22572d8f30302e90668d8a53 100644 (file)
@@ -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_