MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / getErrorMessage

Function getErrorMessage

src/backend/common/module_loading_unix.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28void unloadLibrary(LibHandle handle) { dlclose(handle); }
29
30string getErrorMessage() {
31 char* errMsg = dlerror();
32 if (errMsg) { return string(errMsg); }
33 // constructing std::basic_string from NULL/0 address is
34 // invalid and has undefined behavior
35 return string("No Error");
36}
37
38} // namespace common
39} // namespace arrayfire

Callers 3

ForgeModuleMethod · 0.70
getErrorMessageMethod · 0.70
processExceptionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected