提交 e333f47f 编写于 作者: M Minglei Jin

tarray2/typeof: remove typeof for windows size

上级 48222f5d
......@@ -132,9 +132,9 @@ static FORCE_INLINE int32_t tarray2SortInsert(void *arr, const void *elePtr, int
(a)->capacity = 0; \
} while (0)
#define TARRAY2_INSERT_PTR(a, idx, ep) tarray2InsertBatch(a, idx, ep, 1, sizeof(typeof((a)->data[0])))
#define TARRAY2_APPEND_PTR(a, ep) tarray2InsertBatch(a, (a)->size, ep, 1, sizeof(typeof((a)->data[0])))
#define TARRAY2_APPEND_BATCH(a, ep, n) tarray2InsertBatch(a, (a)->size, ep, n, sizeof(typeof((a)->data[0])))
#define TARRAY2_INSERT_PTR(a, idx, ep) tarray2InsertBatch(a, idx, ep, 1, sizeof((a)->data[0]))
#define TARRAY2_APPEND_PTR(a, ep) tarray2InsertBatch(a, (a)->size, ep, 1, sizeof((a)->data[0]))
#define TARRAY2_APPEND_BATCH(a, ep, n) tarray2InsertBatch(a, (a)->size, ep, n, sizeof((a)->data[0]))
#define TARRAY2_APPEND(a, e) TARRAY2_APPEND_PTR(a, &(e))
// return (TYPE *)
......@@ -170,4 +170,4 @@ static FORCE_INLINE int32_t tarray2SortInsert(void *arr, const void *elePtr, int
}
#endif
#endif /*_TD_UTIL_TARRAY2_H_*/
\ No newline at end of file
#endif /*_TD_UTIL_TARRAY2_H_*/
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册