added wx_dynamic_cast()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-03-03 10:53:55 +00:00
parent d1150ea70f
commit 9f8d3f61a9
4 changed files with 38 additions and 5 deletions

View File

@@ -269,6 +269,9 @@ typedef int wxWindowID;
#ifndef HAVE_STATIC_CAST
#define HAVE_STATIC_CAST
#endif
#ifndef HAVE_DYNAMIC_CAST
#define HAVE_DYNAMIC_CAST
#endif
#endif /* HAVE_CXX_CASTS */
#ifdef HAVE_STATIC_CAST
@@ -277,6 +280,12 @@ typedef int wxWindowID;
#define wx_static_cast(t, x) ((t)(x))
#endif
#ifdef HAVE_DYNAMIC_CAST
#define wx_dynamic_cast(t, x) dynamic_cast<t>(x)
#else
#define wx_dynamic_cast(t, x) ((t)(x))
#endif
#ifdef HAVE_CONST_CAST
#define wx_const_cast(t, x) const_cast<t>(x)
#else