diff options
Diffstat (limited to 'Objective-C')
-rw-r--r-- | Objective-C/libobjcl.m | 5 |
1 files changed, 5 insertions, 0 deletions
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; |