X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9f00eebab797b1fa52a4ffbd18c9ec87b944da6..5527476f67f7313aeea0d16b2fe366e5a5ddb493:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index 2819eb47ca..9e773f31d1 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -74,8 +74,10 @@ typedef int wxEventType; #define BEGIN_DECLARE_EVENT_TYPES() enum { #define END_DECLARE_EVENT_TYPES() }; #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) + #else // !WXWIN_COMPATIBILITY_EVENT_TYPES #define DECLARE_EVENT_TABLE_ENTRY(type, id, idLast, fn, obj) \ @@ -85,6 +87,7 @@ typedef int wxEventType; #define END_DECLARE_EVENT_TYPES() #define DECLARE_EVENT_TYPE(name, value) \ 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(); // generate a new unique event type