Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/plugguard.h @ 233:521734d2b498 distinct-libraries
* Flatten directory tree a bit, update doxygen
author | cannam |
---|---|
date | Fri, 07 Nov 2008 15:28:33 +0000 |
parents | 5ee166dccfff |
children | 7b12c3decc42 |
comparison
equal
deleted
inserted
replaced
232:71ea10a3cbe7 | 233:521734d2b498 |
---|---|
48 * These files include this header, which specifies an appropriate | 48 * These files include this header, which specifies an appropriate |
49 * namespace for the plugin classes to avoid any risk of conflict | 49 * namespace for the plugin classes to avoid any risk of conflict |
50 * with non-plugin class implementations in the host on load. | 50 * with non-plugin class implementations in the host on load. |
51 * | 51 * |
52 * - Hosts include vamp-hostsdk/Plugin.h, vamp-hostsdk/PluginBase.h, | 52 * - Hosts include vamp-hostsdk/Plugin.h, vamp-hostsdk/PluginBase.h, |
53 * vamp-hostsdk/PluginHostAdapter, vamp-hostsdk/hostext/<x>.h etc. | 53 * vamp-hostsdk/PluginHostAdapter, vamp-hostsdk/PluginLoader.h etc. |
54 * These files include vamp-hostsdk/guards.h, which makes a note | 54 * These files include vamp-hostsdk/hostguard.h, which makes a note |
55 * that we are in a host. A file such as vamp-hostsdk/Plugin.h | 55 * that we are in a host. A file such as vamp-hostsdk/Plugin.h |
56 * then simply includes vamp-sdk/Plugin.h, and this guard header | 56 * then simply includes vamp-sdk/Plugin.h, and this guard header |
57 * takes notice of the fact that it has been included from a host | 57 * takes notice of the fact that it has been included from a host |
58 * and leaves the plugin namespace unset. | 58 * and leaves the plugin namespace unset. |
59 * | 59 * |
71 * included in the same file. | 71 * included in the same file. |
72 */ | 72 */ |
73 | 73 |
74 #ifdef _VAMP_IN_HOSTSDK | 74 #ifdef _VAMP_IN_HOSTSDK |
75 | 75 |
76 #define _VAMP_SDK_HEADER_BEGIN(h) | 76 #define _VAMP_SDK_PLUGSPACE_BEGIN(h) |
77 #define _VAMP_SDK_HEADER_END(h) | 77 #define _VAMP_SDK_PLUGSPACE_END(h) |
78 | 78 |
79 #else | 79 #else |
80 | 80 |
81 #define _VAMP_IN_PLUGINSDK | 81 #define _VAMP_IN_PLUGINSDK |
82 | 82 |
83 #define _VAMP_SDK_HEADER_BEGIN(h) \ | 83 #ifdef _VAMP_NO_PLUGIN_NAMESPACE |
84 #define _VAMP_SDK_PLUGSPACE_BEGIN(h) | |
85 #define _VAMP_SDK_PLUGSPACE_END(h) | |
86 #else | |
87 #define _VAMP_SDK_PLUGSPACE_BEGIN(h) \ | |
84 namespace _VampPlugin { | 88 namespace _VampPlugin { |
85 | 89 |
86 #define _VAMP_SDK_HEADER_END(h) \ | 90 #define _VAMP_SDK_PLUGSPACE_END(h) \ |
87 } \ | 91 } \ |
88 using namespace _VampPlugin; | 92 using namespace _VampPlugin; |
93 #endif | |
89 | 94 |
90 #endif | 95 #endif |
91 | 96 |
92 #endif | 97 #endif |
93 | 98 |