Mercurial > hg > vamp-plugin-sdk
comparison 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 |
comparison
equal
deleted
inserted
replaced
264:91ac8f5e52ea | 265:03c7167e1f30 |
---|---|
73 | 73 |
74 #ifdef _VAMP_NO_PLUGIN_NAMESPACE | 74 #ifdef _VAMP_NO_PLUGIN_NAMESPACE |
75 #define _VAMP_SDK_PLUGSPACE_BEGIN(h) | 75 #define _VAMP_SDK_PLUGSPACE_BEGIN(h) |
76 #define _VAMP_SDK_PLUGSPACE_END(h) | 76 #define _VAMP_SDK_PLUGSPACE_END(h) |
77 #else | 77 #else |
78 #ifdef _VAMP_PLUGIN_IN_HOST_NAMESPACE | |
79 #define _VAMP_SDK_PLUGSPACE_BEGIN(h) \ | |
80 namespace _VampHost { | |
81 | |
82 #define _VAMP_SDK_PLUGSPACE_END(h) \ | |
83 } \ | |
84 using namespace _VampHost; | |
85 #else | |
78 #define _VAMP_SDK_PLUGSPACE_BEGIN(h) \ | 86 #define _VAMP_SDK_PLUGSPACE_BEGIN(h) \ |
79 namespace _VampPlugin { | 87 namespace _VampPlugin { |
80 | 88 |
81 #define _VAMP_SDK_PLUGSPACE_END(h) \ | 89 #define _VAMP_SDK_PLUGSPACE_END(h) \ |
82 } \ | 90 } \ |
83 using namespace _VampPlugin; | 91 using namespace _VampPlugin; |
84 #endif | 92 #endif |
93 #endif | |
85 | 94 |
86 #endif | 95 #endif |
87 | 96 |
88 #endif | 97 #endif |
89 | 98 |