]> granicus.if.org Git - gc/commit
New macro to avoid system-wide new/delete inlining in gc_cpp.h (Win32)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 15 Oct 2019 06:59:19 +0000 (09:59 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 15 Oct 2019 06:59:19 +0000 (09:59 +0300)
commiteb571cb86d7a3c0fc08ce769dbcee8fe63132878
treebd059d6ae42c79c34972073de84f92f468910303
parente1eec522eb58c0aa13ca7901d7a179e11e1ee763
New macro to avoid system-wide new/delete inlining in gc_cpp.h (Win32)
(fix of commit 3d784ed)

* doc/README.macros (GC_NO_INLINE_STD_NEW): Document.
* gc_cpp.cc [(_MSC_VER || __DMC__) && GC_NO_INLINE_STD_NEW
&& GC_NEW_DELETE_NEED_THROW] (GC_DECL_NEW_THROW): Define.
* gc_cpp.cc [(_MSC_VER || __DMC__) && GC_NO_INLINE_STD_NEW]
(operator new, operator delete): Likewise.
* include/gc_cpp.h [_MSC_VER || __DMC__ || (__BORLANDC__ || __CYGWIN__
|| __MINGW32__ || __WATCOMC__) && !GC_BUILD && !GC_NOT_DLL]
(operator new, operator delete): Do not define inline function if
GC_NO_INLINE_STD_NEW.
* gc_cpp.cc [GC_NO_INLINE_STD_NEW && _MSC_VER] (operator new,
operator delete): Declare; move comment.
doc/README.macros
gc_cpp.cc
include/gc_cpp.h