mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
fixed: break now works from FOR_EACH
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@124 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -132,8 +132,8 @@
|
||||
*/
|
||||
#define FOR_EACH_T(TypeIt,TypeElem,Elem,Collection, begin, end) \
|
||||
for(std::pair<TypeIt,bool> Elem##_IT(Collection.begin(), true) ; \
|
||||
Elem##_IT.first != Collection.end() ; \
|
||||
++Elem##_IT.first, Elem##_IT.second = true) \
|
||||
Elem##_IT.second && Elem##_IT.first != Collection.end() ; \
|
||||
++Elem##_IT.first, Elem##_IT.second = !Elem##_IT.second) \
|
||||
for(TypeElem Elem = *Elem##_IT.first ; \
|
||||
Elem##_IT.second ; \
|
||||
Elem##_IT.second = false)
|
||||
|
||||
Reference in New Issue
Block a user