comparison dbg/CallStackInfo.d @ 191:52188e7e3fb5

Fixed deprecated features, now compiles with DMD2.058 Also changed Array allocation policy: Now doesn't reallocate but malloc's, followed by a memcpy (no free). (this fixes a crash while compiling druntime. Same bug in dmd)
author korDen@korDen-pc
date Sun, 25 Mar 2012 03:11:12 +0400
parents a4c9de8e39b3
children
comparison
equal deleted inserted replaced
190:80660782bffe 191:52188e7e3fb5
208 } 208 }
209 else static assert(0); 209 else static assert(0);
210 } 210 }
211 enum EXCEPTION_EXECUTE_HANDLER = 1; 211 enum EXCEPTION_EXECUTE_HANDLER = 1;
212 212
213 extern(Windows) int UnhandledExceptionHandler(EXCEPTION_POINTERS* e) { 213 /*extern(Windows) */int UnhandledExceptionHandler(EXCEPTION_POINTERS* e) {
214 scope CallStackInfo info = new CallStackInfo(e); 214 scope CallStackInfo info = new CallStackInfo(e);
215 info.dump(); 215 info.dump();
216 216
217 return EXCEPTION_EXECUTE_HANDLER; 217 return EXCEPTION_EXECUTE_HANDLER;
218 } 218 }