pub unsafe fn register_plugin_destroy_hook(f: fn())
Expand description

Registers a function that will be executed when the plug-in module gets unloaded.

This is supposed to be used from the reaper-rs low-level API but also higher-level APIs whenever they register static variables that require manual cleanup on plug-in unload.

Safety

Must only be called in main thread.