mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 07:21:08 +00:00
Compile in stack trace output on MINGW only
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@39526 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
77706afd51
commit
37d1868b99
1 changed files with 24 additions and 0 deletions
|
@ -1241,8 +1241,10 @@ static NSMapTable *mimeMap = NULL;
|
|||
NS_HANDLER
|
||||
{
|
||||
NSLog(@"%s:exception: %@", __PRETTY_FUNCTION__, localException);
|
||||
#if defined(__MINGW__)
|
||||
if ([[NSApp class] respondsToSelector:@selector(printStackTrace)])
|
||||
[[NSApp class] printStackTrace];
|
||||
#endif
|
||||
#if 0
|
||||
[NSException raise: NSPasteboardCommunicationException
|
||||
format: @"%@", [localException reason]];
|
||||
|
@ -1281,8 +1283,10 @@ static NSMapTable *mimeMap = NULL;
|
|||
NS_HANDLER
|
||||
{
|
||||
NSLog(@"%s:exception: %@", __PRETTY_FUNCTION__, localException);
|
||||
#if defined(__MINGW__)
|
||||
if ([[NSApp class] respondsToSelector:@selector(printStackTrace)])
|
||||
[[NSApp class] printStackTrace];
|
||||
#endif
|
||||
#if 0
|
||||
[NSException raise: NSPasteboardCommunicationException
|
||||
format: @"%@", [localException reason]];
|
||||
|
@ -1356,8 +1360,10 @@ static NSMapTable *mimeMap = NULL;
|
|||
{
|
||||
count = 0;
|
||||
NSLog(@"%s:exception: %@", __PRETTY_FUNCTION__, localException);
|
||||
#if defined(__MINGW__)
|
||||
if ([[NSApp class] respondsToSelector:@selector(printStackTrace)])
|
||||
[[NSApp class] printStackTrace];
|
||||
#endif
|
||||
[NSException raise: NSPasteboardCommunicationException
|
||||
format: @"%@", [localException reason]];
|
||||
}
|
||||
|
@ -1440,8 +1446,10 @@ static NSMapTable *mimeMap = NULL;
|
|||
NS_HANDLER
|
||||
{
|
||||
NSLog(@"%s:exception: %@", __PRETTY_FUNCTION__, localException);
|
||||
#if defined(__MINGW__)
|
||||
if ([[NSApp class] respondsToSelector:@selector(printStackTrace)])
|
||||
[[NSApp class] printStackTrace];
|
||||
#endif
|
||||
[NSException raise: NSPasteboardCommunicationException
|
||||
format: @"%@", [localException reason]];
|
||||
}
|
||||
|
@ -1570,8 +1578,10 @@ static NSMapTable *mimeMap = NULL;
|
|||
{
|
||||
ok = NO;
|
||||
NSLog(@"%s:exception: %@", __PRETTY_FUNCTION__, localException);
|
||||
#if defined(__MINGW__)
|
||||
if ([[NSApp class] respondsToSelector:@selector(printStackTrace)])
|
||||
[[NSApp class] printStackTrace];
|
||||
#endif
|
||||
[NSException raise: NSPasteboardCommunicationException
|
||||
format: @"%@", [localException reason]];
|
||||
}
|
||||
|
@ -1673,8 +1683,10 @@ static NSMapTable *mimeMap = NULL;
|
|||
{
|
||||
ok = NO;
|
||||
NSLog(@"%s:exception: %@", __PRETTY_FUNCTION__, localException);
|
||||
#if defined(__MINGW__)
|
||||
if ([[NSApp class] respondsToSelector:@selector(printStackTrace)])
|
||||
[[NSApp class] printStackTrace];
|
||||
#endif
|
||||
[NSException raise: NSPasteboardCommunicationException
|
||||
format: @"%@", [localException reason]];
|
||||
}
|
||||
|
@ -1739,8 +1751,10 @@ static NSMapTable *mimeMap = NULL;
|
|||
{
|
||||
ok = NO;
|
||||
NSLog(@"%s:exception: %@", __PRETTY_FUNCTION__, localException);
|
||||
#if defined(__MINGW__)
|
||||
if ([[NSApp class] respondsToSelector:@selector(printStackTrace)])
|
||||
[[NSApp class] printStackTrace];
|
||||
#endif
|
||||
[NSException raise: NSPasteboardCommunicationException
|
||||
format: @"%@", [localException reason]];
|
||||
}
|
||||
|
@ -1768,8 +1782,10 @@ static NSMapTable *mimeMap = NULL;
|
|||
{
|
||||
type = nil;
|
||||
NSLog(@"%s:exception: %@", __PRETTY_FUNCTION__, localException);
|
||||
#if defined(__MINGW__)
|
||||
if ([[NSApp class] respondsToSelector:@selector(printStackTrace)])
|
||||
[[NSApp class] printStackTrace];
|
||||
#endif
|
||||
[NSException raise: NSPasteboardCommunicationException
|
||||
format: @"%@", [localException reason]];
|
||||
}
|
||||
|
@ -1796,8 +1812,10 @@ static NSMapTable *mimeMap = NULL;
|
|||
{
|
||||
result = nil;
|
||||
NSLog(@"%s:exception: %@", __PRETTY_FUNCTION__, localException);
|
||||
#if defined(__MINGW__)
|
||||
if ([[NSApp class] respondsToSelector:@selector(printStackTrace)])
|
||||
[[NSApp class] printStackTrace];
|
||||
#endif
|
||||
[NSException raise: NSPasteboardCommunicationException
|
||||
format: @"%@", [localException reason]];
|
||||
}
|
||||
|
@ -1821,8 +1839,10 @@ static NSMapTable *mimeMap = NULL;
|
|||
NS_HANDLER
|
||||
{
|
||||
NSLog(@"%s:exception: %@", __PRETTY_FUNCTION__, localException);
|
||||
#if defined(__MINGW__)
|
||||
if ([[NSApp class] respondsToSelector:@selector(printStackTrace)])
|
||||
[[NSApp class] printStackTrace];
|
||||
#endif
|
||||
[NSException raise: NSPasteboardCommunicationException
|
||||
format: @"%@", [localException reason]];
|
||||
}
|
||||
|
@ -1849,8 +1869,10 @@ static NSMapTable *mimeMap = NULL;
|
|||
{
|
||||
d = nil;
|
||||
NSLog(@"%s:exception: %@", __PRETTY_FUNCTION__, localException);
|
||||
#if defined(__MINGW__)
|
||||
if ([[NSApp class] respondsToSelector:@selector(printStackTrace)])
|
||||
[[NSApp class] printStackTrace];
|
||||
#endif
|
||||
[NSException raise: NSPasteboardCommunicationException
|
||||
format: @"%@", [localException reason]];
|
||||
}
|
||||
|
@ -2236,8 +2258,10 @@ description, [cmd stringByDeletingLastPathComponent]);
|
|||
NS_HANDLER
|
||||
{
|
||||
NSLog(@"%s:exception: %@", __PRETTY_FUNCTION__, localException);
|
||||
#if defined(__MINGW__)
|
||||
if ([[NSApp class] respondsToSelector:@selector(printStackTrace)])
|
||||
[[NSApp class] printStackTrace];
|
||||
#endif
|
||||
[NSException raise: NSPasteboardCommunicationException
|
||||
format: @"%@", [localException reason]];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue