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:
@@ -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
|
||||
|
Reference in New Issue
Block a user