mirror of https://github.com/YosysHQ/abc.git
add a new #define ABC_NAMESPACE_USING_NAMESPACE that adds a using decelaration when needed
This commit is contained in:
parent
11581ca9ee
commit
63fcf25aea
|
|
@ -33,12 +33,14 @@
|
||||||
# define ABC_NAMESPACE_IMPL_START namespace ABC_NAMESPACE {
|
# define ABC_NAMESPACE_IMPL_START namespace ABC_NAMESPACE {
|
||||||
# define ABC_NAMESPACE_IMPL_END }
|
# define ABC_NAMESPACE_IMPL_END }
|
||||||
# define ABC_NAMESPACE_PREFIX ABC_NAMESPACE::
|
# define ABC_NAMESPACE_PREFIX ABC_NAMESPACE::
|
||||||
|
# define ABC_NAMESPACE_USING_NAMESPACE using namespace ABC_NAMESPACE;
|
||||||
# else
|
# else
|
||||||
# define ABC_NAMESPACE_HEADER_START extern "C" {
|
# define ABC_NAMESPACE_HEADER_START extern "C" {
|
||||||
# define ABC_NAMESPACE_HEADER_END }
|
# define ABC_NAMESPACE_HEADER_END }
|
||||||
# define ABC_NAMESPACE_IMPL_START
|
# define ABC_NAMESPACE_IMPL_START
|
||||||
# define ABC_NAMESPACE_IMPL_END
|
# define ABC_NAMESPACE_IMPL_END
|
||||||
# define ABC_NAMESPACE_PREFIX
|
# define ABC_NAMESPACE_PREFIX
|
||||||
|
# define ABC_NAMESPACE_USING_NAMESPACE
|
||||||
# endif // #ifdef ABC_NAMESPACE
|
# endif // #ifdef ABC_NAMESPACE
|
||||||
#else
|
#else
|
||||||
# define ABC_NAMESPACE_HEADER_START
|
# define ABC_NAMESPACE_HEADER_START
|
||||||
|
|
@ -46,6 +48,7 @@
|
||||||
# define ABC_NAMESPACE_IMPL_START
|
# define ABC_NAMESPACE_IMPL_START
|
||||||
# define ABC_NAMESPACE_IMPL_END
|
# define ABC_NAMESPACE_IMPL_END
|
||||||
# define ABC_NAMESPACE_PREFIX
|
# define ABC_NAMESPACE_PREFIX
|
||||||
|
# define ABC_NAMESPACE_USING_NAMESPACE
|
||||||
#endif // #ifdef __cplusplus
|
#endif // #ifdef __cplusplus
|
||||||
|
|
||||||
#endif // #ifndef ABC__misc__util__abc_namespaces_h
|
#endif // #ifndef ABC__misc__util__abc_namespaces_h
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue