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:
Richard Frith-MacDonald 2008-11-21 09:35:41 +00:00
parent 9abe5c934c
commit cdbf2720e4
4 changed files with 21 additions and 8 deletions

View file

@ -782,7 +782,12 @@ cifframe_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: @"cifframe_do_call types (%s / %s) missmatch for %s",
encoded_types, type, GSNameFromSelector(selector)];
}
/* Build the cif frame */
sig = [NSMethodSignature signatureWithObjCTypes: type];