/* * Copyright (c) 1994 by Xerox Corporation. All rights reserved. * * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. * * Permission is hereby granted to use or copy this program * for any purpose, provided the above notices are retained on all copies. * Permission to modify the code and to distribute modified code is granted, * provided the above notices are retained, and a notice that the code was * modified is included with the above copyright notice.
*/
/************************************************************************* This implementation module for gc_cpp.h provides an implementation of the global operators "new" and "delete" that calls the Boehm allocator. All objects allocated by this implementation will be uncollectible but part of the root set of the collector.
You should ensure (using implementation-dependent techniques) that the linker finds this module before the library that defines the default built-in "new" and "delete".
**************************************************************************/
#ifdef HAVE_CONFIG_H # include "config.h" #endif
#ifndef GC_BUILD # define GC_BUILD #endif
#define GC_DONT_INCL_WINDOWS_H #include"gc.h"
#include <new> // for bad_alloc, precedes include of gc_cpp.h
# ifdef _MSC_VER // This new operator is used by VC++ 7+ in Debug builds. void* operatornew[](size_t size, int nBlockUse, constchar* szFileName, int nLine)
{ returnoperatornew(size, nBlockUse, szFileName, nLine);
} # endif // _MSC_VER
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.