comparison vamp-hostsdk/hostguard.h @ 263:4454843ff384

* OK, we're going to have to place the host stuff in its own namespace too. Otherwise our new SV build on OSX fails to load old plugins because they pull in the host namespace PluginBase and thus report the wrong Vamp version... *sigh*
author cannam
date Thu, 20 Nov 2008 15:01:30 +0000
parents 7b12c3decc42
children d5c5a52e6c9f
comparison
equal deleted inserted replaced
262:4a0e998a1afd 263:4454843ff384
38 #define _VAMP_HOSTSDK_HOSTGUARD_H_ 38 #define _VAMP_HOSTSDK_HOSTGUARD_H_
39 39
40 #ifdef _VAMP_IN_PLUGINSDK 40 #ifdef _VAMP_IN_PLUGINSDK
41 #error You have included headers from both vamp-sdk and vamp-hostsdk in the same source file. Please include only vamp-sdk headers in plugin code, and only vamp-hostsdk headers in host code. 41 #error You have included headers from both vamp-sdk and vamp-hostsdk in the same source file. Please include only vamp-sdk headers in plugin code, and only vamp-hostsdk headers in host code.
42 #else 42 #else
43
43 #define _VAMP_IN_HOSTSDK 44 #define _VAMP_IN_HOSTSDK
45
46 #ifdef _VAMP_NO_HOST_NAMESPACE
47 #define _VAMP_SDK_HOSTSPACE_BEGIN(h)
48 #define _VAMP_SDK_HOSTSPACE_END(h)
49 #define _VAMP_SDK_PLUGSPACE_BEGIN(h)
50 #define _VAMP_SDK_PLUGSPACE_END(h)
51 #else
52 #define _VAMP_SDK_HOSTSPACE_BEGIN(h) \
53 namespace _VampHost {
54
55 #define _VAMP_SDK_HOSTSPACE_END(h) \
56 } \
57 using namespace _VampHost;
58 #define _VAMP_SDK_PLUGSPACE_BEGIN(h) \
59 namespace _VampHost {
60
61 #define _VAMP_SDK_PLUGSPACE_END(h) \
62 } \
63 using namespace _VampHost;
44 #endif 64 #endif
45 65
46 #endif 66 #endif
47 67
68 #endif
69