http://wiki.makerfire.com/index.php?title=New.cpp&feed=atom&action=history
New.cpp - Revision history
2024-03-28T18:08:55Z
Revision history for this page on the wiki
MediaWiki 1.30.0
http://wiki.makerfire.com/index.php?title=New.cpp&diff=225&oldid=prev
Rickylone: Created page with "<pre style="color:blue"> #include <new.h> void * operator new(size_t size) { return malloc(size); } void * operator new[](size_t size) { return malloc(size); } void ope..."
2018-03-09T06:37:54Z
<p>Created page with "<pre style="color:blue"> #include <new.h> void * operator new(size_t size) { return malloc(size); } void * operator new[](size_t size) { return malloc(size); } void ope..."</p>
<p><b>New page</b></p><div><pre style="color:blue"><br />
#include <new.h><br />
<br />
void * operator new(size_t size)<br />
{<br />
return malloc(size);<br />
}<br />
<br />
void * operator new[](size_t size)<br />
{<br />
return malloc(size);<br />
}<br />
<br />
void operator delete(void * ptr)<br />
{<br />
free(ptr);<br />
}<br />
<br />
void operator delete[](void * ptr)<br />
{<br />
free(ptr);<br />
}<br />
<br />
int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);};<br />
void __cxa_guard_release (__guard *g) {*(char *)g = 1;};<br />
void __cxa_guard_abort (__guard *) {}; <br />
<br />
void __cxa_pure_virtual(void) {};<br />
<br />
<br />
</pre></div>
Rickylone