From: Ron Lee Date: Thu, 11 Oct 2001 00:14:54 +0000 (+0000) Subject: added DEFINE_LOCAL_EVENT_TYPE() macro X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1a40c31edfde688eef2a8328286e859ce96f02f9 added DEFINE_LOCAL_EVENT_TYPE() macro git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/event.h b/include/wx/event.h index aa9a3b1425..9427bc81f9 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -76,6 +76,7 @@ typedef int wxEventType; #define DECLARE_EVENT_TYPE(name, value) name = wxEVT_FIRST + value, #define DECLARE_LOCAL_EVENT_TYPE(name, value) name = wxEVT_FIRST + value, #define DEFINE_EVENT_TYPE(name) +#define DEFINE_LOCAL_EVENT_TYPE(name) #else // !WXWIN_COMPATIBILITY_EVENT_TYPES @@ -89,6 +90,7 @@ typedef int wxEventType; extern const wxEventType WXDLLEXPORT name; #define DECLARE_LOCAL_EVENT_TYPE(name, value) extern const wxEventType name; #define DEFINE_EVENT_TYPE(name) const wxEventType name = wxNewEventType(); +#define DEFINE_LOCAL_EVENT_TYPE(name) const wxEventType name = wxNewEventType(); // generate a new unique event type extern WXDLLEXPORT wxEventType wxNewEventType();