From a1e780f1b4dd55053df8f1bb6dd4c9c41978b897 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 10 Jul 2018 12:42:51 +0200 Subject: [PATCH] Remove mention of wxEVENTS_COMPATIBILITY_2_8 from the docs This macro doesn't exist any more since almost 10 years (see commit 890d70ebeaf39ee13012d22751d64d8de070275c). --- interface/wx/event.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/interface/wx/event.h b/interface/wx/event.h index 7272ace498..b58fdc4a3c 100644 --- a/interface/wx/event.h +++ b/interface/wx/event.h @@ -4762,14 +4762,12 @@ wxEventType wxNewEventType(); /** Helper macro for definition of custom event table macros. - This macro must only be used if wxEVENTS_COMPATIBILITY_2_8 is 1, otherwise - it is better and more clear to just use the address of the function - directly as this is all this macro does in this case. However it needs to - explicitly cast @a func to @a functype, which is the type of wxEvtHandler - member function taking the custom event argument when - wxEVENTS_COMPATIBILITY_2_8 is 0. + This macro casts the given event handler to the given function type using + @c static_cast to ensure that the actual handler is indeed compatible with + it, before (unsafely) casting it to a generic function pointer used by the + event tables. - See wx__DECLARE_EVT0 for an example of use. + See wx__DECLARE_EVT1 for an example of use. @see @ref overview_events_custom_ownclass */