Jim Paris <j...@jtan.com> writes: > DEFINE_ENUM can just add a dummy element to the end which will follow > the trailing comma: > > #define DEFINE_ENUM(name, list) \ > typedef enum { \ > list(ENUM_BODY) \ > __dummy__##name \ > } name;
This would cause problems elsewhere, because any switch(name) { } construct would need to be modified to either have a default or __dummy__name case statement! So you would break existing code. > -jim -derek -- Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory Member, MIT Student Information Processing Board (SIPB) URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH warl...@mit.edu PGP key available _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel