Implement a binary interface using exported C functions to create and return interfaces.
struct PluginInterface {
virtual void Release()=0;
virtual void Method()=0;
virtual void Method2()=0;
};
extern "C" bool CreatePluginObject(PluginInterface**);
Then we implement the sample plugin as a Lua / Javascript / Python bridge and link it to your software. In a field that you support as a closely related C ++ interface, PLUS is a scripted interface with plugins, and if someone prefers another script, he can do it himself.
source
share