kzwkt / quimeraengine

Automatically exported from code.google.com/p/quimeraengine
0 stars 0 forks source link

Add new overloads to trace operator new #547

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be helpful to trace where the program asks for dynamic memory. We 
could also provide some overloads that receive the line number and the file 
name where that occurs.

void* operator new(u-int size, string line number, string file name)
void* operator new(u-int size, QAlignment alignment, string line number, string 
file name)
void* operator new[](u-int size, string line number, string file name)
void* operator new[](u-int size, QAlignment alignment, string line number, 
string file name)

We could use some macros to switch between using tracing functions and normal 
functions.

Original issue reported on code.google.com by Lince3D@gmail.com on 29 Apr 2014 at 8:18

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 29 Apr 2014 at 8:46

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 29 Jul 2014 at 12:01

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 14 Oct 2014 at 12:59

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 13 Nov 2014 at 11:53

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 9 Feb 2015 at 6:30