diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2020-04-16 00:14:06 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2020-04-16 00:14:06 +0300 |
commit | b57ee7d75d508500726a833f2062644dae0f1d4b (patch) | |
tree | 2fa5bb6e8f813c54ef9f9a768ada707720eef057 /gc_cpp.cc | |
parent | 7f2bdaba3d584b4ad7273ebf1deb1af1ada633ee (diff) | |
download | bdwgc-b57ee7d75d508500726a833f2062644dae0f1d4b.tar.gz |
Move C++ GC_ATTR_EXPLICIT and GC_NOEXCEPT definition to gc_config_macros.h
(code refactoring)
* gc_badalc.cc: Do not include gc_cpp.h.
* gc_cpp.cc: Remove GC_NOEXCEPT in comment for an include.
* include/gc_allocator.h [!GC_ATTR_EXPLICIT] (GC_ATTR_EXPLICIT): Do
not define.
* include/gc_allocator.h [!GC_NOEXCEPT] (GC_NOEXCEPT): Likewise.
* include/gc_cpp.h [!GC_NOEXCEPT] (GC_NOEXCEPT): Likewise.
* tests/test_cpp.cc [!GC_ATTR_EXPLICIT] (GC_ATTR_EXPLICIT): Likewise.
* include/gc_config_macros.h [__cplusplus && !GC_ATTR_EXPLICIT]
(GC_ATTR_EXPLICIT): Define macro (moved from gc_allocator.h).
* include/gc_config_macros.h [__cplusplus && !GC_NOEXCEPT]
(GC_NOEXCEPT): Likewise.
Diffstat (limited to 'gc_cpp.cc')
-rw-r--r-- | gc_cpp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ built-in "new" and "delete". #include <new> // for bad_alloc, precedes include of gc_cpp.h -#include "gc_cpp.h" // for GC_OPERATOR_NEW_ARRAY, GC_NOEXCEPT +#include "gc_cpp.h" // for GC_OPERATOR_NEW_ARRAY #if !(defined(_MSC_VER) || defined(__DMC__)) || defined(GC_NO_INLINE_STD_NEW) |