include ./Version
ADDITIONAL_INCLUDE_DIRS += -I../SOPE/ -D_GNU_SOURCE
-ADDITIONAL_LIB_DIRS += -L../SOPE/GDLContentStore/obj/ -lbfd
+ADDITIONAL_LIB_DIRS += -L../SOPE/GDLContentStore/obj/
SOGOD = sogod-$(MAJOR_VERSION).$(MINOR_VERSION)
TOOL_NAME = $(SOGOD)
$(SOGOD)_OBJC_FILES += \
sogod.m \
- NSException+Stacktrace.m\
SOGo.m \
SOGoProductLoader.m \
build.m
//
//
-#define STACKSYMBOLS 1
+// #define STACKSYMBOLS 1
@interface GSStackTrace : NSObject
{
@end
-#ifdef STACKSYMBOLS
+// #ifdef STACKSYMBOLS
// GSStackTrace inspired by FYStackTrace.m
// created by Wim Oudshoorn on Mon 11-Apr-2006
return module;
}
-#endif /* STACKSYMBOLS */
+// #endif /* STACKSYMBOLS */
//
+ (GSStackTrace*) currentStack
{
- return [[[GSStackTrace alloc] init] autorelease];
+ return [[GSStackTrace new] autorelease];
}
- (oneway void) dealloc
{
[frames release];
- frames = nil;
-
[super dealloc];
}
// grab the current stack
- (id) init
{
-#if defined(STACKSYMBOLS)
+// #if defined(STACKSYMBOLS)
int i;
int n;
- frames = [[NSMutableArray alloc] init];
+ frames = [NSMutableArray new];
n = NSCountFrames();
for (i = 0; i < n; i++)
}
[frames addObject: aFrame];
}
-#else
- int i;
- int n;
+// #else
+// int i;
+// int n;
- frames = [[NSMutableArray alloc] init];
- n = NSCountFrames();
+// frames = [NSMutableArray new];
+// n = NSCountFrames();
- for (i = 0; i < n; i++)
- {
- void *address = NSReturnAddress(i);
+// for (i = 0; i < n; i++)
+// {
+// void *address = NSReturnAddress(i);
- [frames addObject: [NSString stringWithFormat: @"%p", address]];
- }
-#endif
+// [frames addObject: [NSString stringWithFormat: @"%p", address]];
+// }
+// #endif
return self;
}