From b57ee7d75d508500726a833f2062644dae0f1d4b Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 16 Apr 2020 00:14:06 +0300 Subject: 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. --- gc_badalc.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'gc_badalc.cc') 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 // 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 -- cgit v1.2.1