make it possible to predefine __WXFUNCTION__ in user code to have a different behaviour (e.g. use __PRETTY_FUNCTION instead of __FUNCTION__ with gcc) if needed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fa3bd1aaea
commit
986d27c395
@ -47,15 +47,17 @@
|
|||||||
#endif /* !WXDEBUG */
|
#endif /* !WXDEBUG */
|
||||||
#endif /* __WXDEBUG__ */
|
#endif /* __WXDEBUG__ */
|
||||||
|
|
||||||
/* TODO: add more compilers supporting __FUNCTION__ */
|
#ifndef __WXFUNCTION__
|
||||||
#if defined(__GNUC__) || \
|
/* TODO: add more compilers supporting __FUNCTION__ */
|
||||||
(defined(_MSC_VER) && _MSC_VER >= 1300) || \
|
#if defined(__GNUC__) || \
|
||||||
defined(__FUNCTION__)
|
(defined(_MSC_VER) && _MSC_VER >= 1300) || \
|
||||||
#define __WXFUNCTION__ __FUNCTION__
|
defined(__FUNCTION__)
|
||||||
#else
|
#define __WXFUNCTION__ __FUNCTION__
|
||||||
/* still define __WXFUNCTION__ to avoid #ifdefs elsewhere */
|
#else
|
||||||
#define __WXFUNCTION__ (NULL)
|
/* still define __WXFUNCTION__ to avoid #ifdefs elsewhere */
|
||||||
#endif
|
#define __WXFUNCTION__ (NULL)
|
||||||
|
#endif
|
||||||
|
#endif /* __WXFUNCTION__ already defined */
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------------- */
|
||||||
/* Debugging macros */
|
/* Debugging macros */
|
||||||
|
Loading…
Reference in New Issue
Block a user