![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"#include "ModuleLoader.h"#include "js/Modules.h"#include "lib/file/file_system.h"#include "lib/file/vfs/vfs.h"#include "lib/os_path.h"#include "lib/status.h"#include "ps/CLogger.h"#include "ps/CStr.h"#include "ps/Errors.h"#include "ps/Filesystem.h"#include "scriptinterface/FunctionWrapper.h"#include "scriptinterface/Object.h"#include "scriptinterface/Conversions.h"#include "scriptinterface/Exceptions.h"#include "scriptinterface/Interface.h"#include "scriptinterface/Request.h"#include <algorithm>#include <filesystem>#include <fmt/format.h>#include <js/CallArgs.h>#include <js/Class.h>#include <js/CompileOptions.h>#include <js/Object.h>#include <js/Promise.h>#include <js/SourceText.h>#include <js/Value.h>#include <jsapi.h>#include <numeric>#include <stdexcept>#include <string>#include <string_view>
Namespaces | |
| namespace | mozilla |
| namespace | Script |
| Abstraction around a SpiderMonkey JSContext. | |
| namespace | Script::anonymous_namespace{ModuleLoader.cpp} |
Functions | |
| VfsPath | Script::anonymous_namespace{ModuleLoader.cpp}::GetBaseFilename (const VfsPath &filename) |
| When provided with an appendix name (containing a "~" and ending with ".append.js") the name of the base file is returned. More... | |
| std::vector< VfsPath > | Script::anonymous_namespace{ModuleLoader.cpp}::GetAppendices (const VfsPath &baseFilepath) |
| std::string | Script::anonymous_namespace{ModuleLoader.cpp}::GetCode (const ModuleLoader::AllowModuleFunc &allowModule, const VfsPath &filePath) |
| template<typename Requester > | |
| JSObject * | Script::anonymous_namespace{ModuleLoader.cpp}::CompileModule (const Script::Request &rq, const ModuleLoader::AllowModuleFunc &allowModule, ModuleLoader::RegistryType ®istry, const VfsPath &filePath, Requester &&requester) |
| JSObject * | Script::anonymous_namespace{ModuleLoader.cpp}::Resolve (const Script::Request &rq, const ModuleLoader::AllowModuleFunc &allowModule, ModuleLoader::RegistryType ®istry, JS::HandleValue referencingModule, JS::HandleObject moduleRequest) |
| JSObject * | Script::anonymous_namespace{ModuleLoader.cpp}::Evaluate (const Script::Request &rq, JS::HandleObject mod) |
| Status | Script::anonymous_namespace{ModuleLoader.cpp}::FileChangedHook (void *param, const VfsPath &changedFile) |
| template<bool reject> | |
| bool | Script::anonymous_namespace{ModuleLoader.cpp}::Call (JSContext *cx, const unsigned argc, JS::Value *vp) |
Variables | |
| template<bool reject> | |
| constexpr JSClassOps | Script::anonymous_namespace{ModuleLoader.cpp}::callbackClassOps |
| template<bool reject> | |
| constexpr JSClass | Script::anonymous_namespace{ModuleLoader.cpp}::callbackClass {"Callback", JSCLASS_HAS_RESERVED_SLOTS(1), &callbackClassOps<reject>} |