- 
                Notifications
    
You must be signed in to change notification settings  - Fork 34
 
Open
Description
@obviousjim and I were talking about conditional includes for addon header / impl files and thought that it might be useful to suggest that all addons specify a #define that announces the addon's presence to the system.  That way other addons can conditionally include bridge classes.  A proposal would be something like ... in the main class ofxMyAddon.h a define like:
#define DEFINE_OFX_MYADDON
And then in the bridge classes of a dependent addon like ofxMyAddonThatDependsOnofxMyAddon.h one would do something like:
#ifdef DEFINE_OFX_MYADDON`
my special class that required OFX_MYADDON
#endif
Right now it is possible to specify required addon dependencies in addon_config.mk, but this is addressing the situation where an addon can optionally add features if an addon is present.
Metadata
Metadata
Assignees
Labels
No labels