]> git.saurik.com Git - wxWidgets.git/commitdiff
make it possible to predefine __WXFUNCTION__ in user code to have a different behavio...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Mar 2006 19:37:58 +0000 (19:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Mar 2006 19:37:58 +0000 (19:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/debug.h

index f0cb8a5d5eae59ec1db0e0a7e59d518941c0ec8b..82f7bde0ac219150d21d8973f94cb76018193878 100644 (file)
     #endif /*  !WXDEBUG */
 #endif /*  __WXDEBUG__ */
 
-/* TODO: add more compilers supporting __FUNCTION__ */
-#if defined(__GNUC__) || \
-    (defined(_MSC_VER) && _MSC_VER >= 1300) || \
-    defined(__FUNCTION__)
-    #define __WXFUNCTION__ __FUNCTION__
-#else
-    /* still define __WXFUNCTION__ to avoid #ifdefs elsewhere */
-    #define __WXFUNCTION__ (NULL)
-#endif
+#ifndef __WXFUNCTION__
+    /* TODO: add more compilers supporting __FUNCTION__ */
+    #if defined(__GNUC__) || \
+        (defined(_MSC_VER) && _MSC_VER >= 1300) || \
+        defined(__FUNCTION__)
+        #define __WXFUNCTION__ __FUNCTION__
+    #else
+        /* still define __WXFUNCTION__ to avoid #ifdefs elsewhere */
+        #define __WXFUNCTION__ (NULL)
+    #endif
+#endif /* __WXFUNCTION__ already defined */
 
 /*  ---------------------------------------------------------------------------- */
 /*  Debugging macros */