| 28 | void unloadLibrary(LibHandle handle) { dlclose(handle); } |
| 29 | |
| 30 | string 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 |
no outgoing calls
no test coverage detected