add some diagnostics

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27107 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2008-11-21 09:35:41 +00:00
parent 21fe9ddb3d
commit 75ae2d11d8
4 changed files with 21 additions and 8 deletions

View file

@ -315,7 +315,12 @@ callframe_do_call (DOContext *ctxt,
/* Make sure we successfully got the method type, and that its
types match the ENCODED_TYPES. */
NSCParameterAssert (type);
NSCParameterAssert (GSSelectorTypesMatch(encoded_types, type));
if (GSSelectorTypesMatch(encoded_types, type) == NO)
{
[NSException raise: NSInvalidArgumentException
format: @"callframe_do_call types (%s / %s) missmatch for %s",
encoded_types, type, GSNameFromSelector(selector)];
}
/* Build the cif frame */
sig = [NSMethodSignature signatureWithObjCTypes: type];