Allocation_Macros.h File Reference

#include "ace/Malloc_Base.h"
Include dependency graph for Allocation_Macros.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ACE_ALLOCATOR_NEW(POINTER, CONSTRUCTOR, RET_VAL)
#define ACE_ALLOCATOR_NEW_RETURN(POINTER, CONSTRUCTOR)
#define ACE_ALLOCATOR_NEW_NORETURN(POINTER, CONSTRUCTOR)

Define Documentation

#define ACE_ALLOCATOR_NEW ( POINTER,
CONSTRUCTOR,
RET_VAL   ) 
Value:
do { void* ptr = ACE_Allocator::instance ()->malloc (sizeof (CONSTRUCTOR)); \
     if (ptr == 0) { POINTER = 0; errno = ENOMEM; return RET_VAL;}        \
     else { POINTER = new (ptr) CONSTRUCTOR; } \
   } while (0)

Definition at line 6 of file Allocation_Macros.h.

#define ACE_ALLOCATOR_NEW_NORETURN ( POINTER,
CONSTRUCTOR   ) 
Value:
do { void* ptr = ACE_Allocator::instance ()->malloc (sizeof (CONSTRUCTOR));; \
     if (ptr == 0) { POINTER = 0; errno = ENOMEM;}                        \
     else { (POINTER = new (POINTER) CONSTRUCTOR; } \
  } while (0)

Definition at line 16 of file Allocation_Macros.h.

#define ACE_ALLOCATOR_NEW_RETURN ( POINTER,
CONSTRUCTOR   ) 
Value:
do { void* ptr = ACE_Allocator::instance ()->malloc (sizeof (CONSTRUCTOR));; \
     if (ptr == 0) { POINTER = 0; errno = ENOMEM; return;}                \
     else { POINTER = new (POINTER) CONSTRUCTOR; } \
  } while (0)

Definition at line 11 of file Allocation_Macros.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1