From ab8258ddbaa9c7ade3ae93f581602015e52a1601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 2 Aug 2015 13:45:23 +0200 Subject: [PATCH] doc: clarify CORRADE_PLUGIN_IMPORT() usage. --- doc/plugins.dox | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/plugins.dox b/doc/plugins.dox index 196954bdb..eeb7f8c9f 100644 --- a/doc/plugins.dox +++ b/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 and static case. -If you link the plugin into dynamic library or executable, it will register -itself automatically, but if you want to link the plugin into static library, -you need to register it yourself with @ref CORRADE_PLUGIN_IMPORT() in some -function which will be executed before you use the plugin. See the macro -documentation for information about automatic importing and namespace issues. +It's needed to register the static plugin with @ref CORRADE_PLUGIN_IMPORT() in +some function which will be executed before you use the plugin, otherwise the +plugin will not be found. See the macro documentation for information about +automatic importing and namespace issues. @code int main(int argc, char** argv) { CORRADE_PLUGIN_IMPORT(TgaImporter)