| 24 | namespace |
| 25 | { |
| 26 | PyObject* ToPyUnicode( const wchar_t* str, Py_ssize_t size ) |
| 27 | { |
| 28 | #if PY_MAJOR_VERSION == 2 |
| 29 | return PyUnicode_FromUnicode( reinterpret_cast<const Py_UNICODE*>( str ), size ); |
| 30 | #else |
| 31 | return PyUnicode_FromWideChar( str, size ); |
| 32 | #endif |
| 33 | } |
| 34 | PyObject* ToPyUnicode( const wchar_t* str ) |
| 35 | { |
| 36 | #if PY_MAJOR_VERSION == 2 |
no outgoing calls
no test coverage detected