Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

About the Vec (v)->data[(v)->length++] = (val) #21

Open
a631069724 opened this issue Dec 22, 2017 · 0 comments
Open

About the Vec (v)->data[(v)->length++] = (val) #21

a631069724 opened this issue Dec 22, 2017 · 0 comments

Comments

@a631069724
Copy link

a631069724 commented Dec 22, 2017

#define vec_push(v, val)
( vec_expand(vec_unpack(v)),
(v)->data[(v)->length++] = (val) )
void dyad_addListener(

dyad_Stream *stream, int event, dyad_Callback callback, void *udata
) {
Listener listener;
listener.event = event;
listener.callback = callback;
listener.udata = udata;
vec_push(&stream->listeners, listener);
}
the listener will be free
how can (v)->data[(v)->length++] = (val) for c

@a631069724 a631069724 changed the title i don't know About the Vec (v)->data[(v)->length++] = (val) Dec 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant