next up previous contents index
Next: Selections Up: Scripts Previous: The !mkscript Command: Create   Contents   Index

The !ldshared Command: Load Plug-In Script Library

Syntax: !ldshared library [args...]
This will load a script library plug-in as created with the scrkit provided with Xic distributions. The scrkit directory contains files and instruction for creating libraries of C/C++ functions which can be called from scripts.

Thew required argument is a path to the shared library file as generated from the scrkit system. Anything else in the line is passed to the library init function verbatim. The library author can add a parser for this, for providing initialization options if needed.

Loaded libraries can not be unloaded, but can be reloaded, perhaps after modification and recompile. If a library is reloaded, a !rehash is done, to eliminate bad function pointers to the library functions, which would likely crash the program if referenced.

Stephen R. Whiteley 2017-03-22