Open CASCADE Technology 6.6.0
Defines
Standard_DefineAlloc.hxx File Reference

Defines

#define DEFINE_STANDARD_ALLOC_ARRAY
#define DEFINE_STANDARD_ALLOC_PLACEMENT
#define DEFINE_STANDARD_ALLOC
#define WORKAROUND_SUNPRO_NEW_PLACEMENT

Define Documentation

#define DEFINE_STANDARD_ALLOC
Value:
void* operator new (size_t theSize)                                  \
  {                                                                    \
    return Standard::Allocate (theSize);                               \
  }                                                                    \
  void  operator delete (void* theAddress)                             \
  {                                                                    \
    Standard::Free ((Standard_Address&)theAddress);                    \
  }                                                                    \
  DEFINE_STANDARD_ALLOC_ARRAY                                          \
  DEFINE_STANDARD_ALLOC_PLACEMENT
#define DEFINE_STANDARD_ALLOC_ARRAY
Value:
void* operator new[] (size_t theSize)                               \
   {                                                                   \
     return Standard::Allocate (theSize);                              \
   }                                                                   \
   void  operator delete[] (void* theAddress)                          \
   {                                                                   \
     Standard::Free (theAddress);                                      \
   }
#define DEFINE_STANDARD_ALLOC_PLACEMENT
Value:
void* operator new (size_t, void* theAddress)                       \
   {                                                                   \
     return theAddress;                                                \
   }                                                                   \
   void operator delete (void*, void*)                                 \
   {                                                                   \
   }
#define WORKAROUND_SUNPRO_NEW_PLACEMENT
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines