summaryrefslogtreecommitdiff
path: root/gc_badalc.cc
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2020-04-16 00:14:06 +0300
committerIvan Maidanski <ivmai@mail.ru>2020-04-16 00:14:06 +0300
commitb57ee7d75d508500726a833f2062644dae0f1d4b (patch)
tree2fa5bb6e8f813c54ef9f9a768ada707720eef057 /gc_badalc.cc
parent7f2bdaba3d584b4ad7273ebf1deb1af1ada633ee (diff)
downloadbdwgc-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_badalc.cc')
-rw-r--r--gc_badalc.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/gc_badalc.cc b/gc_badalc.cc
index 4f49cecd..0be528c3 100644
--- a/gc_badalc.cc
+++ b/gc_badalc.cc
@@ -28,8 +28,6 @@
#include <new> // for bad_alloc, precedes include of gc_cpp.h
-#include "gc_cpp.h" // for GC_NEW_ABORTS_ON_OOM
-
#if defined(GC_NEW_ABORTS_ON_OOM) || defined(_LIBCPP_NO_EXCEPTIONS)
# define GC_ALLOCATOR_THROW_OR_ABORT() GC_abort_on_oom()
#else