mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-02 12:51:07 +00:00
([ConstantCollection -printCount]): Use object_get_class_name()
instead of sending -name. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1312 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b5e1608e0c
commit
7c9f0a1583
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
||||||
@implementation ConstantCollection (TestingExtras)
|
@implementation ConstantCollection (TestingExtras)
|
||||||
- printCount
|
- printCount
|
||||||
{
|
{
|
||||||
printf("%s: count=%d\n", [self name], [self count]);
|
printf("%s: count=%d\n", object_get_class_name (self), [self count]);
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
@ -29,8 +29,8 @@ int main()
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
id array = [Array new];
|
id array = [Array new];
|
||||||
id bag = [Bag new];
|
// id bag = [Bag new];
|
||||||
id set = [Set new];
|
// id set = [Set new];
|
||||||
id stack = [Stack new];
|
id stack = [Stack new];
|
||||||
id queue = [Queue new];
|
id queue = [Queue new];
|
||||||
id gaparray = [GapArray new];
|
id gaparray = [GapArray new];
|
||||||
|
|
Loading…
Reference in a new issue