mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
minor fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36839 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
acaa598aa0
commit
5f8d366814
5 changed files with 34 additions and 20 deletions
|
@ -761,11 +761,16 @@ GSAllocateObject (Class aClass, NSUInteger extraBytes, NSZone *zone);
|
|||
inline id
|
||||
NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone *zone)
|
||||
{
|
||||
id new;
|
||||
|
||||
if (!objc_collecting_enabled())
|
||||
{
|
||||
GSAllocateObject(aClass, extraBytes, zone);
|
||||
new = GSAllocateObject(aClass, extraBytes, zone);
|
||||
}
|
||||
else
|
||||
{
|
||||
new = class_createInstance(aClass, extraBytes);
|
||||
}
|
||||
id new = class_createInstance(aClass, extraBytes);
|
||||
if (0 == cxx_construct)
|
||||
{
|
||||
cxx_construct = sel_registerName(".cxx_construct");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue