예제 #1
0
static int lua_destroy_aoi_obj(lua_State *L){
	aoi_object* o = lua_touserdata(L,1);
	if(o->map) aoi_leave(o);
	del_bitset(o->view_objs);
	release_luaRef((luaRef_t*)o->ud);
	free(o->ud);
	free(o);
	return 0;
}
예제 #2
0
void del_session_slot_table(struct session_slot_table **sst)
{
	if (*sst) {
		assert((*sst)->highest_used_slotid_plus1 == 0);
		del_bitset((*sst)->free_slots);
		free(*sst);
		*sst = NULL;
	}
}