mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +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
35e02db554
commit
03c0773da1
1 changed files with 39 additions and 0 deletions
|
@ -127,6 +127,7 @@
|
|||
|
||||
@end
|
||||
|
||||
#if defined(GNUSTEP)
|
||||
struct exitLink {
|
||||
struct exitLink *next;
|
||||
id obj; // Object to release or class for atExit
|
||||
|
@ -282,3 +283,41 @@ handleExit()
|
|||
|
||||
@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…
Reference in a new issue