added and documented wx_const/static_cast<>
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -57,11 +57,7 @@ typedef int wxEventType;
|
||||
|
||||
// this is used to make the event table entry type safe, so that for an event
|
||||
// handler only a function with proper parameter list can be given.
|
||||
#ifdef HAVE_STATIC_CAST
|
||||
#define wxStaticCastEvent(type, val) static_cast<type>(val)
|
||||
#else
|
||||
#define wxStaticCastEvent(type, val) ((type)(val))
|
||||
#endif
|
||||
#define wxStaticCastEvent(type, val) wx_static_cast(type, val)
|
||||
|
||||
// in previous versions of wxWindows the event types used to be constants
|
||||
// which created difficulties with custom/user event types definition
|
||||
|
Reference in New Issue
Block a user