Region

by Forum_account
Lets you specify regions of the map that trigger Entered and Exited events.
ID:448104
 
Region hub:
* Added #define FA_REGION to the .dme file. This can be used outside of this project to detect when the Region library has been included.

I think, considering the number of libraries out there and all the possible conflicts between them, there should be DM syntax to support this. The problem with your method and any method I can think of to have this check is, the library isn't even considered to be included until after the #include line.

That is, in your case, any library included before the line
#include <forum_account\region\region.dme>

in a project's .dme (or any other file), will not be able to see that FA_REGION is defined.
Yeah, I had realized this wouldn't work if there were lots of dependencies.

It'd be nice if there was some way to test if an object type existed. So instead of checking if the define from the region library exists, I could check if the /region type exists, or if the global region var exists.
At runtime, you can create an instance of a datum and check its vars list for something that would be defined for that type in your library. Still, only during runtime.