mohabouje / WinToast

WinToast is a lightly library written in C++ which brings a complete integration of the modern toast notifications of Windows 8 & Windows 10. Toast notifications allows your app to inform the users about relevant information and timely events that they should see and take action upon inside your app, such as a new instant message, a new friend request, breaking news, or a calendar event.
MIT License
704 stars 130 forks source link

Is there any way to stop WinToast from printing to the console? #36

Closed Austen-Oberheu closed 6 years ago

Austen-Oberheu commented 6 years ago

Every notification prints an XML object to the console, is there anyway to stop it from doing that?

malja commented 6 years ago

Hi @Austen-Oberheu , according to this code found in wintoastlib.cpp, just define NDEBUG to stop WinToast from writing to console.

#ifdef NDEBUG
    #define DEBUG_MSG(str) do { } while ( false )
#else
    #define DEBUG_MSG(str) do { std::wcout << str << std::endl; } while( false )
#endif