mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2024-12-27 22:55:07 +00:00
15 lines
407 B
C
15 lines
407 B
C
#define POOL_NAME slot
|
|
#define POOL_TYPE struct objc_slot
|
|
#include "pool.h"
|
|
|
|
static inline struct objc_slot *new_slot_for_method_in_class(Method *method,
|
|
Class class)
|
|
{
|
|
struct objc_slot *slot = slot_pool_alloc();
|
|
slot->owner = class;
|
|
slot->types = method->method_types;
|
|
slot->method = method->method_imp;
|
|
slot->version = 1;
|
|
return slot;
|
|
}
|