olety / cjass

Preserving cjass code from code.google.com/p/cjass
0 stars 0 forks source link

loop block #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
loop {
}

What is the expected output? What do you see instead?
I expect "}" being compiled to endloop.
Instead I get the error unknown block.
I know there are the while and whilenot loops in cJass, but sometimes - e.g. in 
my situation the exitwhen is neither the first nor the last line in the loop.

What version of the product are you using? What flags are checked (i.e.
locals autoflush or removing unused code)
1.4.2.33

Please provide any additional information below.

Original issue reported on code.google.com by erwgfifo...@gmail.com on 12 Aug 2011 at 3:31

GoogleCodeExporter commented 9 years ago
{{{
nothing fx () {
    loop {}
}
}}}

It's work, so probably the bug somewhere else. Can you give code or map?

Original comment by adi...@gmail.com on 12 Aug 2011 at 8:22

GoogleCodeExporter commented 9 years ago
Just found out that its the static if bug.

Original comment by erwgfifo...@gmail.com on 12 Aug 2011 at 1:24

GoogleCodeExporter commented 9 years ago
Ok, I'll try to fix it in 1.4.2.34 (I'll post it soon)

Original comment by adi...@gmail.com on 12 Aug 2011 at 5:15

GoogleCodeExporter commented 9 years ago

Original comment by adi...@gmail.com on 15 Aug 2011 at 4:48