Open CASCADE Technology  6.9.0
Macros

NCollection_DefineAlloc.hxx File Reference

#include <NCollection_BaseAllocator.hxx>

Macros

#define DEFINE_NCOLLECTION_ALLOC
 

Macro Definition Documentation

#define DEFINE_NCOLLECTION_ALLOC
Value:
void* operator new (size_t theSize, \
const Handle(NCollection_BaseAllocator)& theAllocator) \
{ \
return theAllocator->Allocate(theSize); \
} \
void operator delete (void* theAddress, \
const Handle(NCollection_BaseAllocator)& theAllocator) \
{ \
theAllocator->Free(theAddress); \
}
#define Handle(ClassName)
Definition: Standard_Macro.hxx:23
Definition: NCollection_BaseAllocator.hxx:48