Py_SetPythonHome()'s signature varies depending on Python version. This converts to the string type we need.
| 156 | { |
| 157 | // Py_SetPythonHome()'s signature varies depending on Python version. This converts to the string type we need. |
| 158 | std::string toPythonHome(const std::string& s, void (*)(char*)) { return s; } |
| 159 | std::wstring toPythonHome(const std::string& s, void (*)(const wchar_t*)) { return juce::String{ s }.toWideCharPointer(); } |
| 160 | } |
| 161 |
no outgoing calls
no test coverage detected