From 2a41f8afd11f9c7eff992d06a938b45d581bb5f6 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 5 May 2018 17:35:28 -0500 Subject: [PATCH] Add macro to take advantage of wxString << --- src/GUI/misc_ui.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GUI/misc_ui.hpp b/src/GUI/misc_ui.hpp index 90ad19070..eebefd015 100644 --- a/src/GUI/misc_ui.hpp +++ b/src/GUI/misc_ui.hpp @@ -15,6 +15,11 @@ #include "Log.hpp" + +/// Macro to build std::wstring that slic3r::log expects using << syntax of wxString +/// Avoids wx pollution of libslic3r +#define LOG_WSTRING(...) ((wxString("") << __VA_ARGS__).ToStdWstring()) + /// Common static (that is, free-standing) functions, not part of an object hierarchy. namespace Slic3r { namespace GUI {