2015-04-15 02:39:26 +02:00
|
|
|
/* Default new/delete operator overloads for OctaSTD. Also has an impl file.
|
2015-04-06 01:05:21 +02:00
|
|
|
*
|
2015-04-12 22:41:02 +02:00
|
|
|
* This file is part of OctaSTD. See COPYING.md for futher information.
|
2015-04-06 01:05:21 +02:00
|
|
|
*/
|
|
|
|
|
2015-04-11 22:00:10 +02:00
|
|
|
#ifndef OCTA_NEW_H
|
|
|
|
#define OCTA_NEW_H
|
2015-04-06 01:05:21 +02:00
|
|
|
|
2015-05-28 00:49:59 +02:00
|
|
|
#ifndef OCTA_ALLOW_CXXSTD
|
2015-06-08 22:20:12 +02:00
|
|
|
#include "octa/types.h"
|
|
|
|
|
|
|
|
inline void *operator new (octa::Size, void *p) { return p; }
|
|
|
|
inline void *operator new [](octa::Size, void *p) { return p; }
|
2015-04-06 01:05:21 +02:00
|
|
|
inline void operator delete (void *, void *) {}
|
|
|
|
inline void operator delete[](void *, void *) {}
|
2015-05-28 00:52:39 +02:00
|
|
|
#else
|
|
|
|
#include <new>
|
2015-05-28 00:49:59 +02:00
|
|
|
#endif
|
2015-04-06 01:05:21 +02:00
|
|
|
|
|
|
|
#endif
|