MCPcopy Create free account
hub / github.com/covscript/covscript / open

Function open

sources/system/unix/common.cpp:441–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439
440 namespace dll {
441 void *open(std::string_view path)
442 {
443 ::dlerror();
444 void *sym = ::dlopen(path.data(), COVLIBDLL_DLOPEN_ARGUMENTS);
445 const char *err = ::dlerror();
446 if (err != nullptr)
447 throw cs::runtime_error(err);
448 return sym;
449 }
450
451 void *find_symbol(void *handle, std::string_view symbol)
452 {

Callers 2

is_exeFunction · 0.70
extensionMethod · 0.50

Calls 2

runtime_errorClass · 0.85
dataMethod · 0.80

Tested by

no test coverage detected