MCPcopy Create free account
hub / github.com/WasmVM/WasmVM / extend

Function extend

src/exec/ModuleQueue.cpp:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static std::optional<std::filesystem::path> extend(std::filesystem::path module_path){
81 if(std::filesystem::exists(module_path)){
82 return module_path;
83 }
84 // .wasm
85 module_path.replace_extension(module_path.extension().string() + ".wasm");
86 if(std::filesystem::exists(module_path)){
87 return module_path;
88 }
89 return std::nullopt;
90}
91
92std::filesystem::path ModuleQueue::resolve(std::string module_name, std::filesystem::path parent){
93 // Exact match

Callers 1

resolveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected