| 787 | //} |
| 788 | |
| 789 | static void SetErrorMessage(const std::string &msg, const char **err) { |
| 790 | if (err) { |
| 791 | #ifdef _WIN32 |
| 792 | (*err) = _strdup(msg.c_str()); |
| 793 | #else |
| 794 | (*err) = strdup(msg.c_str()); |
| 795 | #endif |
| 796 | } |
| 797 | } |
| 798 | |
| 799 | #if 0 |
| 800 | static void SetWarningMessage(const std::string &msg, const char **warn) { |
no test coverage detected