mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
build on apple
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33791 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8e229fd524
commit
f4e03baeea
1 changed files with 39 additions and 0 deletions
|
@ -127,6 +127,7 @@
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
#if defined(GNUSTEP)
|
||||||
struct exitLink {
|
struct exitLink {
|
||||||
struct exitLink *next;
|
struct exitLink *next;
|
||||||
id obj; // Object to release or class for atExit
|
id obj; // Object to release or class for atExit
|
||||||
|
@ -282,3 +283,41 @@ handleExit()
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
/* Dummy implementation
|
||||||
|
*/
|
||||||
|
@implementation NSObject(GSCleanup)
|
||||||
|
|
||||||
|
+ (id) leakAt: (id*)anAddress
|
||||||
|
{
|
||||||
|
[*anAddress retain];
|
||||||
|
}
|
||||||
|
|
||||||
|
+ (id) leak: (id)anObject
|
||||||
|
{
|
||||||
|
return [anObject retain];
|
||||||
|
}
|
||||||
|
|
||||||
|
+ (BOOL) registerAtExit
|
||||||
|
{
|
||||||
|
return [self registerAtExit: @selector(atExit)];
|
||||||
|
}
|
||||||
|
|
||||||
|
+ (BOOL) registerAtExit: (SEL)sel
|
||||||
|
{
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ (void) setShouldCleanUp: (BOOL)aFlag
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ (BOOL) shouldCleanUp
|
||||||
|
{
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue