diff options
author | Matthias Benkard <code@mail.matthias.benkard.de> | 2007-09-15 23:52:00 +0200 |
---|---|---|
committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2007-09-15 23:52:00 +0200 |
commit | d9ac18064cf40f6fbbb09ec8ca74de212c012326 (patch) | |
tree | d76e3158d597d7df2b0f53bd8ce7d97c8898b1c6 /Objective-C | |
parent | 73ca06d6c103bae75e837e2966c757a42d3a7969 (diff) |
Reimplement PRIMITIVE-INVOKE and rename the old version UNSAFE-PRIMITIVE-INVOKE.
darcs-hash:a941bade2677db3d5773c20ffda171c7c9721a98
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; |