add a new #define ABC_NAMESPACE_USING_NAMESPACE that adds a using decelaration when needed

This commit is contained in:
Baruch Sterin 2015-11-20 21:07:01 -08:00
parent 11581ca9ee
commit 63fcf25aea
1 changed files with 3 additions and 0 deletions

View File

@ -33,12 +33,14 @@
# define ABC_NAMESPACE_IMPL_START namespace ABC_NAMESPACE {
# define ABC_NAMESPACE_IMPL_END }
# define ABC_NAMESPACE_PREFIX ABC_NAMESPACE::
# define ABC_NAMESPACE_USING_NAMESPACE using namespace ABC_NAMESPACE;
# else
# define ABC_NAMESPACE_HEADER_START extern "C" {
# define ABC_NAMESPACE_HEADER_END }
# define ABC_NAMESPACE_IMPL_START
# define ABC_NAMESPACE_IMPL_END
# define ABC_NAMESPACE_PREFIX
# define ABC_NAMESPACE_USING_NAMESPACE
# endif // #ifdef ABC_NAMESPACE
#else
# define ABC_NAMESPACE_HEADER_START
@ -46,6 +48,7 @@
# define ABC_NAMESPACE_IMPL_START
# define ABC_NAMESPACE_IMPL_END
# define ABC_NAMESPACE_PREFIX
# define ABC_NAMESPACE_USING_NAMESPACE
#endif // #ifdef __cplusplus
#endif // #ifndef ABC__misc__util__abc_namespaces_h