Skip to content

Commit

Permalink
Add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSully committed May 9, 2019
1 parent c4a315d commit 7896ca6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/new.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#pragma once

[[deprecated]]
inline void *operator new(size_t size)
{
return zmalloc(size, MALLOC_LOCAL);
}

inline void *operator new(size_t size, enum MALLOC_CLASS mclass)
{
return zmalloc(size, mclass);
}

inline void operator delete(void * p)
{
zfree(p);
}

inline void operator delete(void *p, std::size_t)
{
zfree(p);
}

0 comments on commit 7896ca6

Please sign in to comment.