Class jac::ModuleLoaderFeature
template <class Next>
ClassList > jac > ModuleLoaderFeature
Inherits the following classes: Next
Public Functions
Type | Name |
---|---|
Value | evalFile (std::string path_) Evaluate a file. |
void | evalFileWithEventLoop (std::string path_) Evaluate a file and run the event loop until the program exits or throws an exception. |
void | initialize () |
Public Functions Documentation
function evalFile
Evaluate a file.
Parameters:
path_
Path to the file
Returns:
A promise that will be resolved when the module ends, and rejected if the module throws an exception.
function evalFileWithEventLoop
Evaluate a file and run the event loop until the program exits or throws an exception.
Parameters:
path_
Path to the file
function initialize
The documentation for this class was generated from the following file src/jac/features/moduleLoaderFeature.h