* Headers/gnustep/base/objc-gnu2next.h (class_nextMethodList):

Fix macro to return the method list.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17304 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2003-07-22 17:06:48 +00:00
parent b28e15dfe9
commit 8bc027d440
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2003-07-22 Jeremy Bettis <jeremy@deadbeef.com>
* Headers/gnustep/base/objc-gnu2next.h (class_nextMethodList):
Fix macro to return the method list.
2003-07-22 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/AGSHtml.m: Don't output authors heading if not needed.

View file

@ -264,12 +264,12 @@ objc_error_handler objc_set_error_handler(objc_error_handler func);
#define class_getClassMethod(CLASS, SEL) \
class_get_class_method((CLASS)->class_pointer, (SEL))
#define class_nextMethodList(aClass,anIterator) ({\
#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))
#endif /* NeXT_RUNTIME */