]> git.saurik.com Git - wxWidgets.git/commitdiff
remove semicolon from wxDECLARE_EVENT; having it there was inconsistent with other...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 14 Apr 2009 12:47:46 +0000 (12:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 14 Apr 2009 12:47:46 +0000 (12:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/event.h
interface/wx/event.h
src/unix/sound_sdl.cpp

index cc363146e4051f840de527e51cf3f99ad39210a3..7898489b97b8103cca7e5b5dd7a7cf16f0b9f7dd 100644 (file)
@@ -124,7 +124,7 @@ extern WXDLLIMPEXP_BASE wxEventType wxNewEventType();
     // Declare a local (not exported) wxEventType-based event type:
 
     #define wxDECLARE_EVENT( name, type ) \
-        wxDECLARE_EXPORTED_EVENT( wxEMPTY_PARAMETER_VALUE, name, type );
+        wxDECLARE_EXPORTED_EVENT( wxEMPTY_PARAMETER_VALUE, name, type )
 
 #else
     // Define/Declare a templatized event type with the corresponding event as
@@ -149,7 +149,7 @@ extern WXDLLIMPEXP_BASE wxEventType wxNewEventType();
     // Declare a local (not exported) templatized event type:
 
     #define wxDECLARE_EVENT( name, type ) \
-        wxDECLARE_EXPORTED_EVENT( wxEMPTY_PARAMETER_VALUE, name, type );
+        wxDECLARE_EXPORTED_EVENT( wxEMPTY_PARAMETER_VALUE, name, type )
 
 #endif
 
index 37732d5346c9709bcbdc05521c097d7b2c938330..9f061f5a0c64658a9402dfea5fb4fa1208c1f04e 100644 (file)
@@ -3823,6 +3823,14 @@ wxEventType wxNewEventType();
     The class @a cls must be the wxEvent-derived class associated with the
     events of this type and its full declaration must be visible from the point
     of use of this macro.
+
+    For example:
+    @code
+    wxDECLARE_EVENT(MY_COMMAND_EVENT, wxCommandEvent);
+
+    class MyCustomEvent : public wxEvent { ... };
+    wxDECLARE_EVENT(MY_CUSTOM_EVENT, MyCustomEvent);
+    @endcode
  */
 #define wxDECLARE_EVENT(name, cls) \
         wxDECLARE_EXPORTED_EVENT(wxEMPTY_PARAMETER_VALUE, name, cls)
index 8a78505de8e14db2c765f75f9c8d26ffc8766c13..14f45fa7b4b9475e61fb17be9ed026ead54d50e2 100644 (file)
@@ -46,7 +46,7 @@ public:
 typedef void (wxEvtHandler::*wxSoundBackendSDLNotificationFunction)
              (wxSoundBackendSDLNotification&);
 
-wxDECLARE_EVENT( wxEVT_SOUND_BACKEND_SDL_NOTIFICATION, wxSoundBackendSDLNotification )
+wxDECLARE_EVENT(wxEVT_SOUND_BACKEND_SDL_NOTIFICATION, wxSoundBackendSDLNotification);
 
 #define EVT_SOUND_BACKEND_SDL_NOTIFICATON(func) \
     DECLARE_EVENT_TABLE_ENTRY(wxEVT_SOUND_BACKEND_SDL_NOTIFICATION, \