[Opentnl-cvs] tnl/tnl platform.cpp,1.1,1.2
Brought to you by:
mark_frohnmayer,
s_alanet
From: John Q. <jm...@us...> - 2004-04-25 19:09:45
|
Update of /cvsroot/opentnl/tnl/tnl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28542/tnl Modified Files: platform.cpp Log Message: Use SIGTRAP debugBreak on linux as well as osx Index: platform.cpp =================================================================== RCS file: /cvsroot/opentnl/tnl/tnl/platform.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** platform.cpp 20 Apr 2004 04:27:18 -0000 1.1 --- platform.cpp 25 Apr 2004 19:08:24 -0000 1.2 *************** *** 202,209 **** } ! #else ! ! #ifdef TNL_OS_MAC_OSX ! //#include <CarbonCore.h> void Platform::debugBreak() --- 202,206 ---- } ! #else // osx and linux void Platform::debugBreak() *************** *** 211,215 **** kill(getpid(), SIGTRAP); } - #endif void Platform::outputDebugString(const char *string) --- 208,211 ---- *************** *** 220,223 **** --- 216,220 ---- void Platform::forceQuit() { + debugBreak(); exit(1); } |