X-Base Bugtracking

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
000738xShunterPlug-in systempublic2011-09-16 07:292011-09-16 07:37
Assigned ToxOR 
PlatformOSOS Version
Product Versionv0.2 
Target Versionv0.1Fixed in Versionv0.2 
Summary000738: Optional plug-in cross-references
DescriptionA plug-in should be able to add an optional reference to another plug-in, so it can utilize features of another plug-in if it is loaded but will still work without these features if the other plug-in is not loaded.
The reference //ifpluginreference would additionally add a define for the plug-in only if the referenced plug-in exists - the define has the format PluginName_Loaded.
Additional InformationExample:
A plug-in with the name "ExamplePlugin" has an optional reference to "AnotherPlugin". It would add this line:

Now if ExamplePlugin wants to call a static function of AnotherPlugin it must make sure that this is only done if the reference could be fulfilled, so it would include it between #if directives:

#if AnotherPlugin_Loaded
TagsNo tags attached.
SVN revision
Attached Files

- Relationships
related to 000739resolvedxOR Report reached goals to community plug-in to include it into highscores 
child of 000723resolvedxOR Support for references between plug-ins 

-  Notes
User avatar (0000347)
xOR (administrator)
2011-09-16 07:36


Copyright © 2000 - 2011 MantisBT Group
Time: 0.0887 seconds.
memory usage: 7,501 KB
Powered by Mantis Bugtracker