Differences From Artifact [55e68373f9]:
- File src/object.c — part of check-in [ffa5357d1b] at 2012-04-22 14:03:42 on branch trunk — Add cfw_is. (user: js, size: 3219) [annotate] [blame] [check-ins using]
To Artifact [f1b2c26b73]:
- File src/object.c — part of check-in [106a4491c3] at 2012-04-22 14:10:01 on branch trunk — Add cfw_class. (user: js, size: 3291) [annotate] [blame] [check-ins using]
︙ | |||
114 115 116 117 118 119 120 121 122 123 124 125 126 127 | 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | + + + + + + + + | CFWObject *obj = ptr; if (obj->cls->dtor != NULL) obj->cls->dtor(obj); free(obj); } CFWClass* cfw_class(void *ptr) { CFWObject *obj; return obj->cls; } bool cfw_is(void *ptr, CFWClass *cls) { CFWObject *obj = ptr; return (obj->cls == cls); |
︙ |