specialist iterator continue and break macros
specialist iterator continue and break macros
In some case that's not correct to use break or continue in Freeciv iterator macros. Why not create macros to handle break or continue inside iterator macros?
Re: specialist iterator continue and break macros
I consider the SPECENUM and iterator stuff as holy code, a suggestion to change it is an auto-WONTFIX just like a suggestion to use Python or C++ instead of C. Seriously, utitlity/iterator.h mumbles something about invalid_iterator_init() at the end, and common/map.c actually uses invalid_iterator_init(), could this do what you want?Lachu wrote:In some case that's not correct to use break or continue in Freeciv iterator macros. Why not create macros to handle break or continue inside iterator macros?