mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Implemented +alloc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3111 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bbabd52501
commit
794aa80d2c
2 changed files with 20 additions and 0 deletions
|
@ -45,6 +45,11 @@
|
|||
return NSAllocateObject (self, 0, z);
|
||||
}
|
||||
|
||||
+ alloc
|
||||
{
|
||||
return NSAllocateObject (self, 0, NSDefaultMallocZone());
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
if (_zone) {
|
||||
|
@ -489,6 +494,11 @@
|
|||
return NSAllocateObject (self, 0, z);
|
||||
}
|
||||
|
||||
+ alloc
|
||||
{
|
||||
return NSAllocateObject (self, 0, NSDefaultMallocZone());
|
||||
}
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
static int done = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue