WX_DECLARE_LIST usage

Chad Wagner chad at chadawagner.com
Sun Oct 1 17:50:22 PDT 2006


I'm *very* new to wxWidgets, so please forgive me if I'm missing  
something obvious, but...

I am using the WX_DECLARE_LIST and WX_DEFINE_LIST macros, and was  
getting a "multiple types in one declaration" error.  After tediously  
checking all my header files and class definitions for ending  
semicolons, I decided to drill-down into the WX_DEFINE_LIST  
definition, which I found does not provide its own semicolon at the  
end.  Obviously I was able to compile by putting my own semicolon in,  
but I like that the macros can be easily distinguished by not  
(normally) having them.  None of the other macros that I am using  
seem to require them.

So my question is, is this a bug that could be fixed, or is there  
some functional reason why this semicolon is omitted from the  
definition (#define WX_DECLARE_LIST_XO in list.h)?  Or should I just  
live with it and always add them explicitly?

I am using 2.7.0 checked out from CVS a couple days ago, but I see it  
is the same in 2.6.3.

Thanks,
Chad




More information about the wx-users mailing list