• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[vJASS] Static if in Zinc

Status
Not open for further replies.
Level 20
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:
JASS:
//! zinc
library lol
{
    static if (true)
    {
    }

}
//! endzinc
While this works properly:
JASS:
//! zinc
library lol
{
    function lolz()
    {
        static if (true)
        {
        }
    }
}
//! endzinc
 
Status
Not open for further replies.
Top