Example #1
0
static GenModList GenModList_clone(const GenModList *self)
{
    GenModList ret;

    GenModList_Construct(&ret);

    VECTOR_INSERT(ret.gens, VECTOR_ITER_END(ret.gens),
        VECTOR_ITER_BEGIN(self->gens), VECTOR_ITER_END(self->gens)
    );
    VECTOR_INSERT(ret.mods, VECTOR_ITER_END(ret.mods),
        VECTOR_ITER_BEGIN(self->mods), VECTOR_ITER_END(self->mods)
    );

    return ret;
}
Example #2
0
static ALenum AddEffectSlotArray(ALCcontext *context, ALeffectslot **start, ALsizei count)
{
    ALenum err = AL_NO_ERROR;

    LockContext(context);
    if(!VECTOR_INSERT(context->ActiveAuxSlots, VECTOR_ITER_END(context->ActiveAuxSlots), start, start+count))
        err = AL_OUT_OF_MEMORY;
    UnlockContext(context);

    return err;
}