?If Defined

BlitzMax Forums/BlitzMax Programming/?If Defined

No there is no "definition mechanism".
It wouldn't help anyway because Import means compile the other bmx and link to it. At that point the define does not work anymore.

The "most usefull" way is what I normally call "package" approach.

Do a main file (in Alex case I would use MyType as that) and include all cross - referenced class bmx into that MyType.bmx

Then after that you would just import mytype into your project and with quick compile it would only change if mytype or A,B,C or D changes ... so those 5 form an enclosed package