| 857 | //} |
| 858 | |
| 859 | static void SetErrorMessage(const std::string &msg, const char **err) { |
| 860 | if (err) { |
| 861 | #ifdef _WIN32 |
| 862 | (*err) = _strdup(msg.c_str()); |
| 863 | #else |
| 864 | (*err) = strdup(msg.c_str()); |
| 865 | #endif |
| 866 | } |
| 867 | } |
| 868 | |
| 869 | #if 0 |
| 870 | static void SetWarningMessage(const std::string &msg, const char **warn) { |
no outgoing calls
no test coverage detected