mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-21 10:30:58 +00:00
* EOControl/EODebug.h/m(EOFLogAssertGood_): Remove dependancy
on superfluous category. ([NSObject isa]): Remove category. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@18585 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ea5a66f93c
commit
d76b18c85f
3 changed files with 11 additions and 20 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-02-12 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* EOControl/EODebug.h/m(EOFLogAssertGood_): Remove dependancy
|
||||
on superfluous category.
|
||||
([NSObject isa]): Remove category.
|
||||
|
||||
2003-02-01 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* EOAccess/EOAdaptor.m ([EOAdaptor adaptorWithName:]): Use
|
||||
|
|
|
@ -44,7 +44,7 @@ GDL2CONTROL_EXPORT void EOFLogC_(const char* file,int line,const char* string);
|
|||
GDL2CONTROL_EXPORT void EOFLogDumpObject_(const char* file,int line,
|
||||
id object,int deep);
|
||||
GDL2CONTROL_EXPORT void EOFLogAssertGood_(const char* file,int line,
|
||||
NSObject* object);
|
||||
id object);
|
||||
|
||||
#define EOFLogC(cString); EOFLogC_(__FILE__,__LINE__,cString);
|
||||
#define EOFLogDumpObject(object,deep); EOFLogDumpObject_(__FILE__,__LINE__,object,deep);
|
||||
|
|
|
@ -54,21 +54,6 @@ RCS_ID("$Id$")
|
|||
#define USTOP DESTROY(arp);
|
||||
|
||||
|
||||
@interface NSObject (GSISA)
|
||||
|
||||
-(Class)isa;
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSObject (GSISA)
|
||||
|
||||
-(Class)isa
|
||||
{
|
||||
return self->isa;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
void EOFLogC_(const char *file, int line, const char *string)
|
||||
|
@ -389,18 +374,18 @@ void EOFLogDumpObject_(const char *file, int line, id object, int deep)
|
|||
USTOP
|
||||
}
|
||||
|
||||
void EOFLogAssertGood_(const char *file, int line, NSObject *object)
|
||||
void EOFLogAssertGood_(const char *file, int line, id object)
|
||||
{
|
||||
if (object)
|
||||
{
|
||||
if ([object isa] == ((Class)0xdeadface))
|
||||
if (object->class_pointer == ((Class)0xdeadface))
|
||||
{
|
||||
NSLog(@"DEAD FACE: object %p isa=%p in %s at %d\n",
|
||||
(void*)object,
|
||||
(void*)[object isa],
|
||||
(void*)object->class_pointer,
|
||||
file,
|
||||
line);
|
||||
NSCParameterAssert([object isa] == (Class)0xdeadface);
|
||||
NSCParameterAssert(object->class_pointer == (Class)0xdeadface);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue