The :: loader module
The loader module provides functions, constants and global variables that provide a unified loading mechanism of Avisynth libraries' modules.
In particular, the loader module allows for loading modules in a minimal fashion, ie only those modules that are required from the script. This can be accomplished if each individual module loads in a pull-requirements fashion, that is it self-loads any required modules.
That way and with proper partition of library code to modules it is possible to build Avisynth libraries of any complexity while not inducing performance penalties to scripts needing only a small subset of the library's functionality.
See the module's function documentation and the AVSLib's source code for details and working examples.
Required modules
None
Functions
Name | Description |
---|---|
Defines the (visible to loader) global variables that identify the module... | |
Defines the (visible to loader) global variables that identify the package... | |
Returns true if the specified module is loaded, false otherwise... | |
Returns true if the specified package is loaded, false otherwise. A package is considered loaded if all of its modules are loaded... | |
Loads the specified library making its entire code and global data available to scripts... | |
Loads the specified module making its code and global data available to scripts. In coopearion with DefineModule ensures that the module is loaded just once... | |
Loads the specified package making its code and global data available to scripts... In coopearion with DefinePackage ensures that the package is loaded just once... |
Constants
None
Variables
None