#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) \
{ \
\
return p; \
} \
void operator delete (void *p) throw() \
{ \
if (!p) return; \
::odrxFree(p); \
} \
void*
operator new[](
size_t size) \
{ \
return p; \
} \
void operator delete[](void *p) throw() \
{ \
if (!p) return; \
::odrxFree(p); \
} \
ODRX_NOTHROW_ALLOC_OPERATORS() \
ODRX_SIZED_DEALLOC_OPERATORS() \
ALLOCDLL_EXPORT void * odrxAlloc(size_t nBytes)
Definition at line 96 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); }
#define TD_CDECL
defined(_WIN32_WCE)
Definition at line 149 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