mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Minor fixes for unknown selectors in DO
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2998 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0614a58401
commit
4dae5226e8
2 changed files with 4 additions and 2 deletions
|
@ -503,8 +503,7 @@ my_object_is_class(id object)
|
|||
[NSException raise: NSGenericException
|
||||
format: @"ObjC runtime didn't provide SEL name"];
|
||||
if (!sel_types || !*sel_types)
|
||||
[NSException raise: NSGenericException
|
||||
format: @"ObjC runtime didn't provide SEL type"];
|
||||
sel_types = NO_SEL_TYPES;
|
||||
|
||||
[self _coderCreateReferenceForConstPtr: sel];
|
||||
[self encodeValueOfCType: @encode(char*)
|
||||
|
|
|
@ -1151,6 +1151,9 @@ static int messages_received_count;
|
|||
#endif
|
||||
if (type == 0 || *type == '\0') {
|
||||
type = [[object methodSignatureForSelector: sel] methodType];
|
||||
if (type) {
|
||||
sel_register_typed_name(sel_get_name(sel), type);
|
||||
}
|
||||
}
|
||||
NSParameterAssert(type);
|
||||
NSParameterAssert(*type);
|
||||
|
|
Loading…
Reference in a new issue