|
From: | Scott Christley |
Subject: | Re: [Swarm-Support] gcc and messages to nil. I'm needing help |
Date: | Sat, 12 Aug 2006 17:31:39 -0400 |
Hi Paul, I think if you provide your own implementation of the nil_method function in your code, it will override the one in the ObjC runtime. This relies upon a linking trick so it may not work on all platforms. Try adding this into one of your source files id nil_method (id receiver, SEL op, ...) { raiseEvent (InvalidArgument, "The message `%s' was sent to nil.\n", sel_get_name (op)); return nil; } then do a method call to nil to see if it works. Probably it would be a good idea to log a bug/feature request with GCC to allow nil_method to be re-defined by applications; this was done for memory allocation functions that the ObjC runtime uses. cheers Scott On Aug 11, 2006, at 4:26 PM, Paul Johnson wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |