macro_rules! declare_plugin {
($plugin_type:ty) => { ... };
}Expand description
Declare a plugin’s C ABI entry points for dynamic loading.
This macro generates the extern "C" functions that typewriter-engine
calls when loading a plugin from a shared library (.so/.dylib/.dll).
§Usage
ⓘ
declare_plugin!(MyPlugin);This expands to:
_tw_plugin_create()→ returns a raw pointer to a boxedEmitterPlugin_tw_plugin_api_version()→ returns the API version constant