old-trainOS/include/ker/new.hpp

21 lines
294 B
C++
Raw Normal View History

2015-08-13 12:56:50 +00:00
#pragma once
#include <inttypes.h>
#if defined(CIRCUIT_OS)
2015-08-13 15:23:11 +00:00
inline void* operator new(size_t, void* __p)
2015-08-13 12:56:50 +00:00
{
return __p;
}
2015-08-13 15:23:11 +00:00
inline void* operator new[](size_t, void* __p)
2015-08-13 12:56:50 +00:00
{
return __p;
}
inline void operator delete (void*, void*) { }
inline void operator delete[](void*, void*) { }
#endif