mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-09 13:41:45 +00:00
oops
This commit is contained in:
parent
24a90ebc99
commit
98c36cafd3
2 changed files with 5 additions and 4 deletions
|
@ -37,7 +37,7 @@ Vector_t vecFromArray(void* array, u32 count, u32 typesz)
|
|||
return res;
|
||||
}
|
||||
|
||||
int vecAdd(Vector_t* v, void* elem, u8 sz) {
|
||||
int _vecAdd(Vector_t* v, void* elem, u8 sz) {
|
||||
if (!v || !elem || v->elemSz != sz)
|
||||
return 0;
|
||||
|
||||
|
|
|
@ -11,8 +11,9 @@ typedef struct {
|
|||
|
||||
#define FREE(x) free(x); x = NULL;
|
||||
|
||||
#define vecAddElem(v, elem) vecAdd(v, &elem, sizeof(elem))
|
||||
#define vecAddElement(v, elem) vecAdd(v, &elem, sizeof(elem))
|
||||
#define vecAddElem(v, elem) _vecAdd(v, &elem, sizeof(elem))
|
||||
#define vecAddElement(v, elem) _vecAdd(v, &elem, sizeof(elem))
|
||||
#define vecAdd(vec, element) _vecAdd(vec, &element, sizeof(element))
|
||||
#define vecDefArray(type, varName, vec) type varName = (type)((vec).data)
|
||||
#define vecGetArray(type, vec) (type)((vec).data)
|
||||
#define vecPDefArray(type, varName, vec) type varName = (type)((vec)->data)
|
||||
|
@ -27,7 +28,7 @@ typedef struct {
|
|||
|
||||
Vector_t newVec(u8 typesz, u32 preallocate);
|
||||
Vector_t vecFromArray(void* array, u32 count, u32 typesz);
|
||||
bool vecAdd(Vector_t* v, void* elem, u8 sz);
|
||||
bool _vecAdd(Vector_t* v, void* elem, u8 sz);
|
||||
Vector_t vecCopy(Vector_t* orig);
|
||||
Vector_t vecCopyOffset(Vector_t* orig, u32 offset);
|
||||
|
||||
|
|
Loading…
Reference in a new issue