zen31
1
A small fix in DBG macro for those who prefer to work with:
#define DONT_SET_USING_JUCE_NAMESPACE 1
diff --git a/src/core/juce_PlatformDefs.h b/src/core/juce_PlatformDefs.h
index 8fd28b8..6d4df46 100644
--- a/src/core/juce_PlatformDefs.h
+++ b/src/core/juce_PlatformDefs.h
@@ -68,7 +68,7 @@
@see Logger::outputDebugString
*/
- #define DBG(dbgtext) Logger::outputDebugString (dbgtext);
+ #define DBG(dbgtext) JUCE_NAMESPACE::Logger::outputDebugString (dbgtext);
//==============================================================================
// Assertions..
zen31
3
…and a small fix again:
diff --git a/src/core/juce_PlatformDefs.h b/src/core/juce_PlatformDefs.h
index e676788..dc077fb 100644
--- a/src/core/juce_PlatformDefs.h
+++ b/src/core/juce_PlatformDefs.h
@@ -68,7 +68,7 @@
@see Logger::outputDebugString
*/
- #define DBG(dbgtext) { String tempDbgBuf; tempDbgBuf << dbgtext; JUCE_NAMESPACE::Logger::outputDebugString (tempDbgBuf); }
+ #define DBG(dbgtext) { JUCE_NAMESPACE::String tempDbgBuf; tempDbgBuf << dbgtext; JUCE_NAMESPACE::Logger::outputDebugString (tempDbgBuf); }
//==============================================================================
// Assertions..
jules
4
Ah yes, I should have remembered that! Thanks!