GFreak45
I didnt slap you, i high 5'd your face.
- Reaction score
- 130
i know you can use library requirements in static ifs ie:
[ljass]static if LIBRARY_T32 then[/ljass]... etc
but can you do other things? like:
[ljass]static if FUNCTION_SomeFunction then[/ljass]
or
[ljass]static if VARIABLE_someVariable then[/ljass]
and what comiles first? the module or the static if?
ie:
so i could use that module in 2 different scenarios and get 2 completely different results?
[ljass]static if LIBRARY_T32 then[/ljass]... etc
but can you do other things? like:
[ljass]static if FUNCTION_SomeFunction then[/ljass]
or
[ljass]static if VARIABLE_someVariable then[/ljass]
and what comiles first? the module or the static if?
ie:
JASS:
module SomeModule
static if BOOL then
do stuff
else
do other stuff
endif
endmodule
so i could use that module in 2 different scenarios and get 2 completely different results?