#include <stdlib.h>
#include "OdAllocExport.h"
#include "OdAlloc.h"
#include <new>
Go to the source code of this file.
◆ ODRX_ALLOC_OPERATORS
#define ODRX_ALLOC_OPERATORS |
( |
| ) |
|
Value: void*
operator new (
size_t size)
throw(std::bad_alloc) \
{ \
\
if (!p &&
size)
throw std::bad_alloc(); \
return p; \
} \
void operator delete (void *p) throw() \
{ \
} \
void*
operator new[](
size_t size)
throw(std::bad_alloc) \
{ \
if (!p &&
size)
throw std::bad_alloc(); \
return p; \
} \
void operator delete[](void *p) throw() \
{ \
} \
ODRX_NOTHROW_ALLOC_OPERATORS() \
ODRX_SIZED_DEALLOC_OPERATORS() \
Definition at line 94 of file OdAllocOp.h.
◆ ODRX_CRTDBG_MAP_ALLOC_OPERATORS
#define ODRX_CRTDBG_MAP_ALLOC_OPERATORS |
( |
| ) |
|
Value:void*
TD_CDECL operator new(
size_t size, int,
const char*,int) { return ::operator
new(
size); } \
void*
TD_CDECL operator new[](
size_t size, int,
const char*, int) { return ::operator
new[](
size); }
Definition at line 147 of file OdAllocOp.h.
◆ ODRX_NOTHROW_ALLOC_OPERATORS
#define ODRX_NOTHROW_ALLOC_OPERATORS |
( |
| ) |
|
Value:void *
operator new (
size_t size,
const std::nothrow_t&)
throw() {
return operator new(
size); } \
void *
operator new[] (::size_t
count,
const std::nothrow_t&)
throw() {
return operator new[](
count); }\
void operator delete[](void *ptr, const std::nothrow_t&) throw() { operator delete[](ptr); } \
void operator delete (void *ptr, const std::nothrow_t&) throw() { operator delete(ptr); } \
Definition at line 62 of file OdAllocOp.h.
◆ ODRX_SIZED_DEALLOC_OPERATORS
#define ODRX_SIZED_DEALLOC_OPERATORS |
( |
| ) |
|
◆ TD_CDECL