|
| From: | David Ayers |
| Subject: | Re: class_nextMethodList |
| Date: | Tue, 22 Jul 2003 19:07:18 +0200 |
| User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507 |
Jeremy Bettis wrote:
gnustep base 1.7.1 gives this error when trying to use class_nextMethodList
"void value not ignored as it ought to be"
I suggest this macro:
#define class_nextMethodList(aClass,anIterator) (({\
if (*(anIterator) == 0) \
*((struct objc_method_list**)(anIterator)) = (aClass)->methods; \
else \
*(anIterator) = (*((struct
objc_method_list**)(anIterator)))->method_next; \
}), *(anIterator))
Thanks! Patch applied. Cheers, David
| [Prev in Thread] | Current Thread | [Next in Thread] |