Mercurial > hg > vamp-plugin-sdk
diff vamp-sdk/plugguard.h @ 265:03c7167e1f30
* Use _VAMP_PLUGIN_IN_HOST_NAMESPACE rather than omitting plugin namespace
completely in host context
* Doc and build warning updates
author | cannam |
---|---|
date | Thu, 20 Nov 2008 20:16:05 +0000 |
parents | 4454843ff384 |
children | d5c5a52e6c9f |
line wrap: on
line diff
--- a/vamp-sdk/plugguard.h Thu Nov 20 17:33:12 2008 +0000 +++ b/vamp-sdk/plugguard.h Thu Nov 20 20:16:05 2008 +0000 @@ -75,6 +75,14 @@ #define _VAMP_SDK_PLUGSPACE_BEGIN(h) #define _VAMP_SDK_PLUGSPACE_END(h) #else +#ifdef _VAMP_PLUGIN_IN_HOST_NAMESPACE +#define _VAMP_SDK_PLUGSPACE_BEGIN(h) \ + namespace _VampHost { + +#define _VAMP_SDK_PLUGSPACE_END(h) \ + } \ + using namespace _VampHost; +#else #define _VAMP_SDK_PLUGSPACE_BEGIN(h) \ namespace _VampPlugin { @@ -82,6 +90,7 @@ } \ using namespace _VampPlugin; #endif +#endif #endif