• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to create modular libraries?

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,342
Hi,

Suppose I've got a few different libraries that use the same data structure/struct for some of their functions (a subset).

Suppose for whatever reason I decide I want to re-do that data structure/library (which they all require). Is there anyway to say something to JASSHELPER like this:

"If you can't find the required library, don't compile this library"

I have a feeling I need static ifs to achieve this.

It would be preferable if I could set a flag, rather than go into each library and comment out the code that uses the now non-existent data structure/library.
 

Deleted member 219079

D

Deleted member 219079

I have a feeling I need static ifs to achieve this.

That's the role of static ifs you just described :)

If the outcome of static if is false, it removes whatever was inside of that block.
 
Status
Not open for further replies.
Top