mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
[ruamoko] Implement default -describe method on Object
It returns [classname@address], which is probably a reasonable default.
This commit is contained in:
parent
019b40fb81
commit
ee5e38b46c
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
#include <Object.h>
|
||||
#include <AutoreleasePool.h>
|
||||
#include <string.h>
|
||||
|
||||
static void link__obj_forward (void)
|
||||
{
|
||||
|
@ -367,4 +368,9 @@ typedef void arIMP(id, SEL, id);
|
|||
return self;
|
||||
}
|
||||
|
||||
- (string) describe
|
||||
{
|
||||
return sprintf ("[%s@%p]", object_get_class_name (self), self);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue