/* * ======== List_put ======== */ Void List_put(List_Object *obj, List_Elem *elem) { UInt key; key = Hwi_disable(); List_enqueue(obj, elem); Hwi_restore(key); }
void Room_SpawnEntity(Room self, const char *name, json_t* args) { Entity (*constructor)(json_t*) = FHash_get(constructors, name); Entity *val = constructor(args); List_enqueue(self->entities, val); }
/* * ======== List_insert ======== */ Void List_insert(List_Object *obj, List_Elem *newElem, List_Elem *curElem) { List_enqueue((List_Object *)curElem, newElem); }