static void rna_GameProperty_type_set(PointerRNA *ptr, int value) { bProperty *prop= (bProperty*)(ptr->data); if(prop->type != value) { prop->type= value; init_property(prop); } }
bProperty *new_property(int type) { bProperty *prop; prop = MEM_callocN(sizeof(bProperty), "property"); prop->type = type; init_property(prop); strcpy(prop->name, "prop"); return prop; }