From d9ac18064cf40f6fbbb09ec8ca74de212c012326 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sat, 15 Sep 2007 23:52:00 +0200 Subject: Reimplement PRIMITIVE-INVOKE and rename the old version UNSAFE-PRIMITIVE-INVOKE. darcs-hash:a941bade2677db3d5773c20ffda171c7c9721a98 --- Objective-C/libobjcl.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Objective-C') diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m index d89693a..7dc5de2 100644 --- a/Objective-C/libobjcl.m +++ b/Objective-C/libobjcl.m @@ -299,6 +299,11 @@ objcl_invoke_with_types (void *receiver, method = objc_msg_lookup (receiver, method_selector); #endif + if (method == NULL) + [[NSException exceptionWithName: @"MLKNoApplicableMethod" + reason: @"Tried to call a non-existent method." + userInfo: nil] raise]; + return_type = objcl_pyobjc_signature_to_ffi_return_type (return_typespec); arg_types[0] = id_type; arg_types[1] = sel_type; -- cgit v1.2.3