mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 03:14:00 +02:00
- got built in memory leak working. Just edit leak_dumper.h and uncomment:
//#define SL_LEAK_DUMP - got better / more accurate stack dumps when we detect errors in game. - Both of these need to be worked on in windows next, win32 may not compile for now until i fix it on that platform. - BE VERY CAREFUL when working in leak_dumper.* it may cause GCC and your system to crash if you don't know what you are doing!
This commit is contained in:
@@ -89,7 +89,7 @@ Profiler::~Profiler(){
|
||||
FILE *f= fopen(profileLog.c_str(), "w");
|
||||
#endif
|
||||
if(f==NULL)
|
||||
throw runtime_error("Can not open file: " + profileLog);
|
||||
throw megaglest_runtime_error("Can not open file: " + profileLog);
|
||||
|
||||
fprintf(f, "Profiler Results\n\n");
|
||||
|
||||
@@ -120,7 +120,7 @@ void Profiler::sectionEnd(const string &name){
|
||||
currSection= currSection->getParent();
|
||||
}
|
||||
else{
|
||||
throw runtime_error("Profile: Leaving section is not current section: "+name);
|
||||
throw megaglest_runtime_error("Profile: Leaving section is not current section: "+name);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user