Browse Source

doc: clarify CORRADE_PLUGIN_IMPORT() usage.

pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
ab8258ddba
  1. 9
      doc/plugins.dox

9
doc/plugins.dox

@ -192,11 +192,10 @@ instead of @ref Corrade::PluginManager::LoadState::Loaded "PluginManager::LoadSt
but there is no need to change the above code, as it will work for both dynamic but there is no need to change the above code, as it will work for both dynamic
and static case. and static case.
If you link the plugin into dynamic library or executable, it will register It's needed to register the static plugin with @ref CORRADE_PLUGIN_IMPORT() in
itself automatically, but if you want to link the plugin into static library, some function which will be executed before you use the plugin, otherwise the
you need to register it yourself with @ref CORRADE_PLUGIN_IMPORT() in some plugin will not be found. See the macro documentation for information about
function which will be executed before you use the plugin. See the macro automatic importing and namespace issues.
documentation for information about automatic importing and namespace issues.
@code @code
int main(int argc, char** argv) { int main(int argc, char** argv) {
CORRADE_PLUGIN_IMPORT(TgaImporter) CORRADE_PLUGIN_IMPORT(TgaImporter)

Loading…
Cancel
Save