vec
vec copied to clipboard
Return success values for vec_pusharr and vec_extend
Since both of these functions are implemented as do-while macros (through vec_pusharr
), there's no way of knowing if the reallocs in them succeeded or not, which is bad. Returning a 0 or -1 like the rest of the functions would be good.