Fix for stb_arr_insert

This commit is contained in:
blackpawn 2015-12-02 22:34:04 -06:00
parent cbfa0c4418
commit 28f1b0f569
1 changed files with 1 additions and 1 deletions

2
stb.h
View File

@ -3062,7 +3062,7 @@ typedef struct
#define stb_arr_insertn(a,i,n) (stb__arr_insertn((void **) &(a), sizeof(*a), i, n))
// insert an element at i
#define stb_arr_insert(a,i,v) (stb__arr_insertn((void **) &(a), sizeof(*a), i, n), ((a)[i] = v))
#define stb_arr_insert(a,i,v) (stb__arr_insertn((void **) &(a), sizeof(*a), i, 1), ((a)[i] = v))
// delete N elements from the middle starting at index 'i'
#define stb_arr_deleten(a,i,n) (stb__arr_deleten((void **) &(a), sizeof(*a), i, n))