Skip to content
Myr

Fix for stb_arr_insert

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by blackpawn · committed by blackpawn · parent cbfa0c4 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:stb.h+1 added-1 removed
3060 unmodified lines
3061// add N new uninitialized elements starting at index 'i'3062#define stb_arr_insertn(a,i,n) (stb__arr_insertn((void **) &(a), sizeof(*a), i, n))30633064// insert an element at i3065#define stb_arr_insert(a,i,v) (stb__arr_insertn((void **) &(a), sizeof(*a), i, n), ((a)[i] = v))3065#define stb_arr_insert(a,i,v) (stb__arr_insertn((void **) &(a), sizeof(*a), i, 1), ((a)[i] = v))30663067// delete N elements from the middle starting at index 'i'3068#define stb_arr_deleten(a,i,n) (stb__arr_deleten((void **) &(a), sizeof(*a), i, n))3069
11067 unmodified lines