Optionally put gc_cpp symbols into 'boehmgc' namespace
authorAlexander Herz <alexander.herz@mytum.de>
Sat, 20 Oct 2012 12:07:12 +0000 (16:07 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 20 Oct 2012 12:07:12 +0000 (16:07 +0400)
commit5e360acbb258cbc08a3a3516ba7a206e62c427f9
tree9d64186f736c4deb2723d8e86fa29f1ef283c9bd
parent2c62153351eac55a28e9baee201cd4aca25d9595
Optionally put gc_cpp symbols into 'boehmgc' namespace

* include/gc_cpp.h (GC_NAMESPACE): Recognize new macro.
* include/gc_cpp.h (GC_NS_QUALIFY): New macro definition (prefixing
argument with "boehmgc" namespace if GC_NAMESPACE).
* include/gc_cpp.h (GCPlacement, gc, gc_cleanup, GCCleanUpFunc,
gc::operator new, gc::operator delete, gc::operator new[],
gc::operator delete[], gc_cleanup::~gc_cleanup, gc_cleanup::cleanup):
Put into "boehmgc" namespace if GC_NAMESPACE.
* include/gc_cpp.h (operator new, operator delete, operator new[]):
Wrap GCPlacement, GCCleanUpFunc, UseGC, PointerFreeGC symbols into
GC_NS_QUALIFY.
* tests/test_cpp.cc (USE_GC, main): Wrap UseGC, GC, NoGC symbols into
GC_NS_QUALIFY.
* tests/test_cpp.cc (class B, class C, class D, class E): Wrap gc,
gc_cleanup class names into GC_NS_QUALIFY.
include/gc_cpp.h
tests/test_cpp.cc