Author: mlytwyn
Date: Fri Mar 11 00:48:17 2016
New Revision: 39526
URL: http://svn.gna.org/viewcvs/gnustep?rev=39526&view=rev
Log:
Compile in stack trace output on MINGW only
Modified:
libs/gui/branches/gnustep_testplant_branch/Source/NSPasteboard.m
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSPasteboard.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSPasteboard.m?rev=39526&r1=39525&r2=39526&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSPasteboard.m
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSPasteboard.m Fri Mar
11 00:48:17 2016
@@ -1241,8 +1241,10 @@
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 @@
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 @@
{
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 @@
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 @@
{
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 @@
{
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 @@
{
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 @@
{
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 @@
{
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 @@
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 @@
{
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 @@
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]];
}
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs