Deprecated FOREACH and NEXT

These feature unbalanced WML and have been replaced by proper tags.
This commit is contained in:
Charles Dang 2016-08-06 11:08:48 +11:00
parent 2e92e9ecc1
commit 491fa91906
2 changed files with 19 additions and 19 deletions

View file

@ -304,3 +304,22 @@ _"No gold carried over to the next scenario."#enddef
persistent=yes
[/side]
#enddef
# wmlindent: start ignoring
#define FOREACH ARRAY_VALUE VAR
# Macro to begin a WML clause that iterates over an array.
[for]
array={ARRAY_VALUE}
variable={VAR}
[do]
#enddef
#define NEXT VAR
# Macro to end a WML clause that iterates over an array.
[/do]
[/for]
#enddef
# wmlindent: stop ignoring
# wmlindent: opener "{FOREACH "
# wmlindent: closer "{NEXT "

View file

@ -208,25 +208,6 @@
[/clear_global_variable]
#enddef
# wmlindent: start ignoring
#define FOREACH ARRAY_VALUE VAR
# Macro to begin a WML clause that iterates over an array.
[for]
array={ARRAY_VALUE}
variable={VAR}
[do]
#enddef
#define NEXT VAR
# Macro to end a WML clause that iterates over an array.
[/do]
[/for]
#enddef
# wmlindent: stop ignoring
# wmlindent: opener "{FOREACH "
# wmlindent: closer "{NEXT "
#define REPEAT NUMBER BODY_WML
# Macro to execute some WML a defined number of times.
#