diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-14 23:19:15 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-14 23:19:15 +0000 |
commit | 5abb0d40c3b15c925ee333a313dd97df1a70c067 (patch) | |
tree | 75efaf404e746e30f05618c2864d42b6793f7f03 /ace/Malloc_T.h | |
parent | 4ad7dd25de5cb6d91d7ecbc73a90eb0d908c4c47 (diff) | |
download | ATCD-5abb0d40c3b15c925ee333a313dd97df1a70c067.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Malloc_T.h')
-rw-r--r-- | ace/Malloc_T.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/ace/Malloc_T.h b/ace/Malloc_T.h index 863a31bcbb7..1f0926741b2 100644 --- a/ace/Malloc_T.h +++ b/ace/Malloc_T.h @@ -17,40 +17,6 @@ #if !defined (ACE_MALLOC_T_H) #define ACE_MALLOC_T_H -// Some useful abstration for expressions involving -// ACE_Allocator.malloc (). The difference between ACE_NEW_MALLOC* -// with ACE_ALLOCATOR* is that they call constructors also. - -#define ACE_ALLOCATOR_RETURN(POINTER,ALLOCATOR,RET_VAL) \ - do { POINTER = ALLOCATOR; \ - if (POINTER == 0) { errno = ENOMEM; return RET_VAL; } \ - } while (0) -#define ACE_ALLOCATOR(POINTER,ALLOCATOR) \ - do { POINTER = ALLOCATOR; \ - if (POINTER == 0) { errno = ENOMEM; return; } \ - } while (0) - -#define ACE_NEW_MALLOC_RETURN(POINTER,ALLOCATOR,CONSTRUCTOR,RET_VAL) \ - do { POINTER = ALLOCATOR; \ - if (POINTER == 0) { errno = ENOMEM; return RET_VAL;} \ - else { new (POINTER) CONSTRUCTOR; } \ - } while (0) -#define ACE_NEW_MALLOC(POINTER,ALLOCATOR,CONSTRUCTOR) \ - do { POINTER = ALLOCATOR; \ - if (POINTER == 0) { errno = ENOMEM; return;} \ - else { new (POINTER) CONSTRUCTOR; } \ - } while (0) - -#define ACE_DES_NOFREE (POINTER,CLASS) POINTER->CLASS::~CLASS () -#define ACE_DES_FREE(POINTER,DEALLOCATOR,CLASS) \ - do { POINTER->CLASS::~CLASS (); DEALLOCATOR (POINTER); } while (0) -#define ACE_DES_NOFREE_TEMPLATE (POINTER,T_CLASS,T_PARAMETER) \ - POINTER-> T_CLASS T_PARAMETER ::~ T_CLASS () -#define ACE_DES_FREE_TEMPLATE(POINTER,DEALLOCATOR,T_CLASS,T_PARAMETER) \ - do { POINTER-> T_CLASS T_PARAMETER ::~ T_CLASS (); \ - DEALLOCATOR (POINTER); \ - } while (0) - #include "ace/ACE.h" #include "ace/Synch.h" #include "ace/Malloc.h" |