Respect unicode setting for plugin debug info

This commit is contained in:
Thomas Krijnen
2026-05-08 13:39:36 +02:00
parent bfea57c617
commit 8d0a6ecc16
+4
View File
@@ -54,7 +54,11 @@ namespace {
}
void plugin_debug(const std::string& message) {
#if defined(_MSC_VER) && defined(_UNICODE)
std::wcerr << "[ifcopenshell.plugin] " << message.c_str() << std::endl;
#else
std::cerr << "[ifcopenshell.plugin] " << message << std::endl;
#endif
}
const char* plugin_kind_name(ifcopenshell::plugin::kind kind) {