macro_rules! declare_plugin {
    ($plugin_type:expr) => { ... };
}
Expand description

Declare a plugin’s PluginDeclaration.

Notes

This works by automatically generating an extern "C" function named get_plugin_type with a pre-defined signature and symbol name. And then generating a PluginDeclaration. Therefore you will only be able to declare one plugin per library.