@@ -22,14 +22,24 @@ * @brief A class which provides easy to use sorted double-linked lists. * * @warning Because the list is sorted, all methods inserting an object at a * specific place are unavailable, even though they exist in OFList! */ +#ifdef OF_HAVE_GENERICS +@interface OFSortedList : OFList +#else +# ifndef DOXYGEN +# define ObjectType id +# endif @interface OFSortedList: OFList +#endif /*! * @brief Inserts the object to the list while keeping the list sorted. * * @param object The object to insert * @return The list object for the object just added */ -- (of_list_object_t*)insertObject: (id )object; +- (of_list_object_t*)insertObject: (ObjectType )object; @end +#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) +# undef ObjectType +#endif