include_shared [function]
include_shared( string file[, bool override ] )
runs the shared library pointed to by file
, returns success, as bool
, emits a warning on failure
file
must be available according to the platform-specific rules of dynamic libraries (shared objects)
- the library must contain a 'sgscript_main' function that will be called on initialization
- if
override
is specified, file will be reloaded even if it was already loaded before
include_shared( "sgsjson.dll" ); // load the JSON library DLL on Windows