wxwidgets.cfg: Improved support for BEGIN_EVENT_TABLE and END_EVENT_TABLE-macros.
This commit is contained in:
parent
3b935af90e
commit
22291d2262
|
@ -1347,13 +1347,11 @@
|
|||
<define name="wxDECLARE_EVENT( name, type )" value=""/>
|
||||
<define name="wxDECLARE_NO_COPY_CLASS(classname)" value=""/>
|
||||
<define name="wxDEFINE_EVENT( name, type )" value=""/>
|
||||
<!-- Override begin/end macros slightly differently -->
|
||||
<!-- In order to avoid overriding all the possible event types we just replace with a semicolon -->
|
||||
<!-- We could turn these into multi-line comments, but that wouldn't work if there was one inside the begin/end -->
|
||||
<define name="BEGIN_EVENT_TABLE(a,b)" value=";"/>
|
||||
<define name="END_EVENT_TABLE()" value=";"/>
|
||||
<define name="wxBEGIN_EVENT_TABLE(a,b)" value=";"/>
|
||||
<define name="wxEND_EVENT_TABLE()" value=";"/>
|
||||
<define name="BEGIN_EVENT_TABLE(a,b)" value="wxBEGIN_EVENT_TABLE(a,b)"/>
|
||||
<define name="END_EVENT_TABLE()" value="wxEND_EVENT_TABLE()"/>
|
||||
<define name="wxBEGIN_EVENT_TABLE(theClass, baseClass)" value="const wxEventTable theClass::sm_eventTable = { &baseClass::sm_eventTable, &theClass::sm_eventTableEntries[0] }; const wxEventTable *theClass::GetEventTable() const { return &theClass::sm_eventTable; } wxEventHashTable theClass::sm_eventHashTable(theClass::sm_eventTable); wxEventHashTable &theClass::GetEventHashTable() const { return theClass::sm_eventHashTable; } const wxEventTableEntry theClass::sm_eventTableEntries[] = {"/>
|
||||
<define name="wxEND_EVENT_TABLE()" value="wxDECLARE_EVENT_TABLE_TERMINATOR() };"/>
|
||||
<define name="wxDECLARE_EVENT_TABLE_TERMINATOR()" value="wxEventTableEntry(wxEVT_NULL, 0, 0, 0, 0)"/>
|
||||
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__debug.html -->
|
||||
<!-- #define wxASSERT(condition) -->
|
||||
<define name="wxASSERT" value="assert"/>
|
||||
|
|
Loading…
Reference in New Issue