• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

How to create modular libraries?

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,337
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