Engine.enableLoader

Enable a loader, enables a loader for plugins. The C plugin loader is always enabled. The other plugin loaders are: lua5.1, python and python3.

For instance, the following code will enable Python 2 plugins to be loaded: |[ peas_engine_enable_loader (engine, "python"); ]|

Note: plugin loaders used to be shared across #PeasEngines so enabling a loader on one #PeasEngine would enable it on all #PeasEngines. This behavior has been kept to avoid breaking applications, however a warning has been added to help applications transition.

class Engine
void
enableLoader
(
string loaderName
)

Parameters

loaderName string

The name of the loader to enable.

Meta