summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2019-10-15 09:59:19 +0300
committerIvan Maidanski <ivmai@mail.ru>2019-10-15 09:59:19 +0300
commiteb571cb86d7a3c0fc08ce769dbcee8fe63132878 (patch)
treebd059d6ae42c79c34972073de84f92f468910303 /doc
parente1eec522eb58c0aa13ca7901d7a179e11e1ee763 (diff)
downloadbdwgc-eb571cb86d7a3c0fc08ce769dbcee8fe63132878.tar.gz
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/README.macros4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/README.macros b/doc/README.macros
index 3ce176cf..5d4a198b 100644
--- a/doc/README.macros
+++ b/doc/README.macros
@@ -57,6 +57,10 @@ _ENABLE_ARRAYNEW
operator new[] and delete[] are separately
overloadable. Used in gc_cpp.h.
+GC_NO_INLINE_STD_NEW Tested by gc_cpp.cc and gc_cpp.h. MS Windows only.
+ Define the system-wide new and delete operators in gccpp.dll
+ instead of providing an inline version of the operators.
+
_DLL Tested by gc_config_macros.h. Defined by Visual C++ if runtime
dynamic libraries are in use. Used (only if none of GC_DLL,
GC_NOT_DLL, __GNUC__ are defined) to test whether