Usermode/libc++ - Debug in cxa code, list emplace and iterators, general STL fixes
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / new.cc
index f2b2458..9dae853 100644 (file)
@@ -7,24 +7,29 @@
  */
 #include <stddef.h>
 #include <stdlib.h>
+#include <acess/sys.h>
 
 // === CODE ===
 void *operator new( size_t size )
 {
+       //_SysDebug("libc++ - operator new(%i)", size);
        return malloc( size );
 }
 void *operator new( size_t size, void* ptr )
 {
+       //_SysDebug("libc++ - operator new(%i, %p)", size, ptr);
        size = size;
        return ptr;
 }
 
 void *operator new[]( size_t size )
 {
+       //_SysDebug("libc++ - operator new[](%i)", size);
        return malloc( size );
 }
 void *operator new[]( size_t size, void* ptr )
 {
+       //_SysDebug("libc++ - operator new[](%i, %p)", size, ptr);
        size = size;
        return ptr;
 }

UCC git Repository :: git.ucc.asn.au