Rudiments: /home/dmuse/src/rudiments/include/rudiments/private/new.h Source File

Rudiments

- Main Page
- Classes

new.h
1 // Copyright (c) 2015 David Muse
2 // See the COPYING file for more information
3
4 #ifndef RUDIMENTS_NEW_H
5 #define RUDIMENTS_NEW_H
6
7 #include <rudiments/private/config.h>
8
9 #if defined(RUDIMENTS_HAVE_NEW)
10 #include <new>
11 #elif defined(RUDIMENTS_HAVE_NEW_H)
12 #include <new.h>
13 #else
14 inline void *operator new(size_t size, void *place) {
15 return place;
16 }
17 #endif
18
19 #endif