Tweak to dusable stacktrace when built without debug information.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22974 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-05-23 13:57:38 +00:00
parent f0892499e5
commit 1ce0c09e21
2 changed files with 12 additions and 0 deletions

View file

@ -2,6 +2,8 @@
* Source/Additions/GSMime.m: Fix some cases where parse was saying
it needed more data even though it had actually completed.
* Source/NSException.m: Don't add stacktrace information if we are
not building with debug on.
2006-05-22 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -46,6 +46,16 @@
#endif
#endif
/*
* Turn off STACKTRACE if we don't have DEBUG defined ... if we are not built
* with DEBUG then we are probably missing stackframe information etc.
*/
#if !(defined(DEBUG))
#if defined(STACKTRACE)
#undef STACKTRACE
#endif
#endif
#if defined(STACKTRACE)
// GSStackTrace inspired by FYStackTrace.m