32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
typedef struct CFWObject {
CFWClass *cls;
int ref_cnt;
} CFWObject;
extern CFWClass *cfw_object;
extern void* cfw_new(CFWClass*, ...);
extern void* cfw_new_p(CFWClass*, ...);
extern void* cfw_ref(void*);
extern void cfw_unref(void*);
extern void cfw_free(void*);
extern CFWClass* cfw_class(void*);
extern bool cfw_is(void*, CFWClass*);
extern bool cfw_equal(void*, void*);
extern uint32_t cfw_hash(void*);
|
|
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
typedef struct CFWObject {
CFWClass *cls;
int ref_cnt;
} CFWObject;
extern CFWClass *cfw_object;
extern void* cfw_new(CFWClass*, ...);
extern void* cfw_create(CFWClass*, ...);
extern void* cfw_ref(void*);
extern void cfw_unref(void*);
extern void cfw_free(void*);
extern CFWClass* cfw_class(void*);
extern bool cfw_is(void*, CFWClass*);
extern bool cfw_equal(void*, void*);
extern uint32_t cfw_hash(void*);
|