You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
421 B
C

#define POOL_NAME slot
#define POOL_TYPE struct objc_slot
#include "pool.h"
/**
* Allocates a new slot and initialises it for this method.
*/
static inline struct objc_slot *new_slot_for_method_in_class(Method method,
Class class)
{
struct objc_slot *slot = slot_pool_alloc();
slot->method_metadata = method;
slot->method = method->imp;
return slot;
}