- Joined
- Jul 6, 2009
- Messages
- 1,885
I've got a small problem - i've started using Zinc and i get compile error when i try to use a static if outside a function. Am i doing something wrong or they generally don't work outside of functions in Zinc?
This, for example, gives a compile error saying that "static" is unexpected:
While this works properly:
This, for example, gives a compile error saying that "static" is unexpected:
JASS:
//! zinc
library lol
{
static if (true)
{
}
}
//! endzinc
JASS:
//! zinc
library lol
{
function lolz()
{
static if (true)
{
}
}
}
//! endzinc