Changeset e03d7b in git for omalloc/omallocClass.h


Ignore:
Timestamp:
Apr 10, 2015, 2:26:57 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '873fc1222e995d7cb33f79d8f1792ce418c8c72c')
Children:
aeb760bbbad0ff816c36fdb5a66d5481d76a769c
Parents:
76f52597f7be2cdc6a83d6956f788e3bb342a2f9
Message:
opt: omallocClass mostly inlined
File:
1 edited

Legend:

Unmodified
Added
Removed
  • omalloc/omallocClass.h

    r76f525 re03d7b  
    1313#include <new>
    1414#include <stdlib.h>
     15#include <omalloc/omalloc.h>
    1516
    1617class omallocClass
     
    2324throw (std::bad_alloc)
    2425#endif
    25 ;
     26{
     27  void* addr;
     28  omTypeAlloc(void*, addr, size);
     29  return addr;
     30}
     31
    2632void operator delete ( void* block )
    2733#ifndef __GNUC__
    2834throw ()
    2935#endif
    30 ;
     36{
     37  omFree( block );
     38}
     39
    3140
    3241void* operator new[] ( size_t size )
Note: See TracChangeset for help on using the changeset viewer.