mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
Object error doesn't return anything...
This commit is contained in:
parent
f748b6582a
commit
fb9c3e6125
2 changed files with 10 additions and 8 deletions
|
@ -18,13 +18,13 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) free
|
||||
- (void) dealloc
|
||||
{
|
||||
local integer i;
|
||||
for (i = 0; i < count; i++)
|
||||
[array[i] free];
|
||||
[array[i] dealloc];
|
||||
obj_free (array);
|
||||
[super free];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (id) getItemAt: (integer) index
|
||||
|
|
|
@ -233,8 +233,9 @@ BOOL (id object) object_is_meta_class = #0;
|
|||
local IMP msg;
|
||||
|
||||
if (!aSelector || !(msg = obj_msg_lookup (self, aSelector)))
|
||||
return [self error: "invalid selector passed to %s",
|
||||
sel_get_name (_cmd)];
|
||||
[self error: "invalid selector passed to %s: %s",
|
||||
object_get_class_name (self),
|
||||
sel_get_name (aSelector)];
|
||||
|
||||
return msg (self, aSelector);
|
||||
}
|
||||
|
@ -244,8 +245,9 @@ BOOL (id object) object_is_meta_class = #0;
|
|||
local IMP msg;
|
||||
|
||||
if (!aSelector || !(msg = obj_msg_lookup (self, aSelector)))
|
||||
return [self error: "invalid selector passed to %s",
|
||||
sel_get_name (_cmd)];
|
||||
[self error: "invalid selector passed to %s: %s",
|
||||
object_get_class_name (self),
|
||||
sel_get_name (aSelector)];
|
||||
|
||||
return msg (self, aSelector, anObject);
|
||||
}
|
||||
|
@ -257,7 +259,7 @@ BOOL (id object) object_is_meta_class = #0;
|
|||
local IMP msg;
|
||||
|
||||
if (!aSelector || !(msg = obj_msg_lookup (self, aSelector)))
|
||||
return [self error: "invalid selector passed to %s",
|
||||
[self error: "invalid selector passed to %s",
|
||||
sel_get_name (_cmd)];
|
||||
|
||||
return msg (self, aSelector, anObject, anotherObject);
|
||||
|
|
Loading…
Reference in a new issue