?If Defined

BlitzMax Forums/BlitzMax Programming/?If Defined

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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