mirror of https://github.com/nothings/stb.git
Fix for stb_arr_insert
This commit is contained in:
parent
cbfa0c4418
commit
28f1b0f569
2
stb.h
2
stb.h
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue