MCPcopy Create free account
hub / github.com/pybind/pybind11 / widen_chars

Function widen_chars

include/pybind11/embed.h:92–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90};
91
92inline wchar_t *widen_chars(const char *safe_arg) {
93 wchar_t *widened_arg = Py_DecodeLocale(safe_arg, nullptr);
94 return widened_arg;
95}
96
97inline void precheck_interpreter() {
98 if (Py_IsInitialized() != 0) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected