mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 17:12:15 +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
54bd8f5a02
commit
b298bf6dcb
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
#include <Object.h>
|
#include <Object.h>
|
||||||
#include <AutoreleasePool.h>
|
#include <AutoreleasePool.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
static void link__obj_forward (void)
|
static void link__obj_forward (void)
|
||||||
{
|
{
|
||||||
|
@ -367,4 +368,9 @@ typedef void arIMP(id, SEL, id);
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (string) describe
|
||||||
|
{
|
||||||
|
return sprintf ("[%s@%p]", object_get_class_name (self), self);
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue