📄 plugins
字号:
Plugin API==========As of 0.52.01, mcl supports plugins: shared objects which contain binary codethat does things.To load a plugin, specify it using the plugins= option in mclrc.Specify the name without the .so extension.mcl simply looks for certain function names in the shared object andthen runs them. There is a number of functions common to all types ofplugins:NOTE: All these functions should be declared using extern "C", i.e.the signature of them is simply the unmangled function name.const char *initFunction(const char *args);Initiaze the plugin. If successfull, return NULL. If not, returnan error message. REQUIRED. Arguments may be passed to this module(this is done by putting them after the module name in the pluginsline in mclrc e.g.:plugins=myplugin 400, otherplugin more arguments, perl, mccpThe initFunction of myplugin would get called with "400", the oneof otherplugin with "more arguments". const char *versionFunction();Return a message describing the plugin. Optional.Specialized functions======================To be really useful, the plugin should provide some of the belowfunctions (otherwise it won't be able to do much!). mcl will call eachof the functions in turn if they exist.EmbeddedInterpreter* createInterpreter();Create an embedded interpreter object. This object must inherit fromEmbeddedInterpreter and override the relevant functions. The lastloaded object will be the one which is used by mcl.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -